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
@@ -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
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user