mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Refactor logging to centralized logger
This commit is contained in:
1 parent
08d770162b
commit
37ba57aa37
67 files changed
+1130
-798
No files matched your search
+4
-3
@@ -1,3 +1,4 @@
|
||||
import { userLogger } from "./utils/logger.js";
|
||||
const NEW_MODE = "new";
|
||||
|
||||
const FALLBACK_CONTEXT = Object.freeze({
|
||||
@@ -87,8 +88,8 @@ export function applyDesignSystemAttributes(root = null) {
|
||||
try {
|
||||
element.setAttribute("data-ds", mode);
|
||||
} catch (error) {
|
||||
if (typeof console !== "undefined" && console && console.warn) {
|
||||
console.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
if (typeof console !== "undefined" && console && userLogger.warn) {
|
||||
userLogger.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -99,4 +100,4 @@ export function applyDesignSystemAttributes(root = null) {
|
||||
export function subscribeToDesignSystemChanges(listener) {
|
||||
void listener;
|
||||
return () => {};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user