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

+4 -5
View File
@@ -1,5 +1,4 @@
import { VideoCard } from "../components/VideoCard.js";
import { userLogger } from "../../utils/logger.js";
import {
subscribeToVideoViewCount,
unsubscribeFromVideoViewCount,
@@ -541,7 +540,7 @@ export class VideoListView {
})
.catch((error) => {
if (this.window?.console?.warn) {
this.window.userLogger.warn(
this.window.console.warn(
"[VideoListView] Failed to resolve posted timestamp:",
error
);
@@ -767,7 +766,7 @@ export class VideoListView {
try {
unsubscribeFromVideoViewCount(entry.pointer, entry.token);
} catch (error) {
userLogger.warn(
console.warn(
`[viewCount] Failed to unsubscribe from stale pointer ${key}:`,
error
);
@@ -921,7 +920,7 @@ export class VideoListView {
this.viewCountSubscriptions.set(pointerInfo.key, entry);
return entry;
} catch (error) {
userLogger.warn("[viewCount] Failed to subscribe to view counter:", error);
console.warn("[viewCount] Failed to subscribe to view counter:", error);
return null;
}
}
@@ -973,7 +972,7 @@ export class VideoListView {
try {
unsubscribeFromVideoViewCount(entry.pointer, entry.token);
} catch (error) {
userLogger.warn(
console.warn(
`[viewCount] Failed to unsubscribe from pointer ${key}:`,
error
);