refactor: migrate console usage to shared loggers

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 14:37:25 -04:00
1 parent 52af2082d5
commit 7ae07b1369
54 files changed
+940 -1197

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import {
ADMIN_WHITELIST_MODE_STORAGE_KEY,
} from "./config.js";
import { loadAdminState, persistAdminState } from "./adminListStore.js";
import { userLogger } from "./utils/logger.js";
function normalizeNpub(value) {
return typeof value === "string" ? value.trim() : "";
@@ -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;