mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 13:52:58 +00:00
Revert "Refactor logging to centralized logger"
This commit is contained in:
1 parent
2e7038e0e6
commit
d705cf176b
67 files changed
+798
-1130
No files matched your search
+5
-6
@@ -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();
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user