mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 13:52:58 +00:00
Revert "Refactor logging to centralized logger"
This commit is contained in:
1 parent
2e7038e0e6
commit
d705cf176b
67 files changed
+798
-1130
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { userLogger } from "../utils/logger.js";
|
||||
// js/services/authService.js
|
||||
|
||||
import {
|
||||
@@ -95,7 +94,7 @@ export default class AuthService {
|
||||
try {
|
||||
this.logger(message, error);
|
||||
} catch (logError) {
|
||||
userLogger.warn("[AuthService] logger threw", logError);
|
||||
console.warn("[AuthService] logger threw", logError);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -104,7 +103,7 @@ export default class AuthService {
|
||||
try {
|
||||
this.logger(...args);
|
||||
} catch (error) {
|
||||
userLogger.warn("[AuthService] logger threw", error);
|
||||
console.warn("[AuthService] logger threw", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -952,4 +951,4 @@ export default class AuthService {
|
||||
this.emitProfileList("hydrate");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user