mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 20:32:27 +00:00
Refactor logging to centralized logger
This commit is contained in:
1 parent
08d770162b
commit
37ba57aa37
67 files changed
+1130
-798
No files matched your search
+3
-2
@@ -1,3 +1,4 @@
|
||||
import { userLogger } from "./utils/logger.js";
|
||||
// js/accessControl.js
|
||||
|
||||
import {
|
||||
@@ -126,7 +127,7 @@ class AccessControl {
|
||||
|
||||
const operation = this._performRefresh();
|
||||
const tracked = operation.catch((error) => {
|
||||
console.error("Failed to refresh admin lists:", error);
|
||||
userLogger.error("Failed to refresh admin lists:", error);
|
||||
throw error;
|
||||
});
|
||||
this._refreshPromise = tracked;
|
||||
@@ -410,4 +411,4 @@ export {
|
||||
ADMIN_WHITELIST_MODE_STORAGE_KEY,
|
||||
normalizeNpub,
|
||||
isValidNpub,
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user