Revert "Refactor logging to centralized logger"

This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-15 11:14:10 -04:00
1 parent 2e7038e0e6
commit d705cf176b
67 files changed
+798 -1130

No files matched your search

+5 -6
View File
@@ -1,4 +1,3 @@
import { devLogger, userLogger } from "./utils/logger.js";
const REMOTE_IMPORT_TIMEOUT = 4500;
const LOCAL_IMPORT_TIMEOUT = 2500;
const NODE_IMPORT_TIMEOUT = 1500;
@@ -417,7 +416,7 @@ export function bootstrapNostrTools() {
reason: "Failed to resolve any nostr-tools helpers.",
attempts,
};
userLogger.warn("[bitvid] nostr-tools bootstrap failed", failure);
console.warn("[bitvid] nostr-tools bootstrap failed", failure);
return failure;
}
@@ -447,9 +446,9 @@ export function bootstrapNostrTools() {
if (resolvedNip04) {
canonicalTools.nip04 = resolvedNip04;
devLogger.info("[bitvid] Initialized nostr nip04 helpers.");
console.info("[bitvid] Initialized nostr nip04 helpers.");
} else {
userLogger.warn(
console.warn(
"[bitvid] NIP-04 helpers unavailable after bootstrap attempts."
);
}
@@ -508,7 +507,7 @@ export function bootstrapNostrTools() {
},
});
} catch (error) {
userLogger.warn("[bitvid] Failed to install NostrTools guard.", error);
console.warn("[bitvid] Failed to install NostrTools guard.", error);
}
applyActive(existingGlobalTools);
@@ -532,4 +531,4 @@ const nostrToolsReady = bootstrapNostrTools();
export { nostrToolsReady };
export default nostrToolsReady;
await nostrToolsReady;
await nostrToolsReady;