refactor: migrate console usage to shared loggers

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 14:37:25 -04:00
1 parent 52af2082d5
commit 7ae07b1369
54 files changed
+940 -1197

No files matched your search

+2 -3
View File
@@ -1,3 +1,4 @@
import { userLogger } from "./utils/logger.js";
const NEW_MODE = "new";
const FALLBACK_CONTEXT = Object.freeze({
@@ -87,9 +88,7 @@ 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);
}
userLogger.warn("[design-system] Failed to set data-ds attribute:", error);
}
});