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";
// js/viewManager.js
import { initChannelProfileView } from "./channelProfile.js";
import { subscriptions } from "./subscriptions.js";
@@ -56,7 +55,7 @@ export async function loadView(viewUrl) {
container.appendChild(newScript);
});
} catch (err) {
userLogger.error("View loading error:", err);
console.error("View loading error:", err);
const fallbackMarkup = `
<div class="bv-stack">
<article class="card p-md" data-state="critical">
@@ -93,7 +92,7 @@ export const viewInitRegistry = {
}
},
explore: () => {
devLogger.log("Explore view loaded.");
console.log("Explore view loaded.");
},
history: async () => {
try {
@@ -102,7 +101,7 @@ export const viewInitRegistry = {
await module.initHistoryView();
}
} catch (error) {
userLogger.error("Failed to initialize history view:", error);
console.error("Failed to initialize history view:", error);
}
},
@@ -112,7 +111,7 @@ export const viewInitRegistry = {
* which loads subs if needed and renders the video grid in #subscriptionsVideoList
*/
subscriptions: async () => {
devLogger.log("Subscriptions view loaded.");
console.log("Subscriptions view loaded.");
const app = getApplication();
if (!app?.pubkey) {
@@ -135,4 +134,4 @@ export const viewInitRegistry = {
// Call the initialization function from channelProfile.js
initChannelProfileView();
},
};
};