Refactor logging to centralized logger

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 11:11:14 -04:00
1 parent 08d770162b
commit 37ba57aa37
67 files changed
+1130 -798

No files matched your search

+4 -3
View File
@@ -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 () => {};
}
}