Run logger when debug is true

This commit is contained in:
marzban-dev
2025-03-19 18:02:48 +03:30
parent f421831123
commit 12ff741340
+3 -4
View File
@@ -29,11 +29,10 @@ export default defineNuxtPlugin(() => {
return response;
},
async function(error) {
await Logger.axiosErrorLog(error);
// if (error.status === 401) {
// logout();
// }
if (config.public.DEBUG === "true" && import.meta.server) {
await Logger.axiosErrorLog(error);
}
return Promise.reject(error);
}