Refactor logging to centralized logger

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 11:11:14 -04:00
1 parent 08d770162b
commit 37ba57aa37
67 files changed
+1130 -798

No files matched your search

+3 -2
View File
@@ -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,
};
};