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

+3 -4
View File
@@ -1,4 +1,3 @@
import { userLogger } from "./utils/logger.js";
const NEW_MODE = "new";
const FALLBACK_CONTEXT = Object.freeze({
@@ -88,8 +87,8 @@ export function applyDesignSystemAttributes(root = null) {
try {
element.setAttribute("data-ds", mode);
} catch (error) {
if (typeof console !== "undefined" && console && userLogger.warn) {
userLogger.warn("[design-system] Failed to set data-ds attribute:", error);
if (typeof console !== "undefined" && console && console.warn) {
console.warn("[design-system] Failed to set data-ds attribute:", error);
}
}
});
@@ -100,4 +99,4 @@ export function applyDesignSystemAttributes(root = null) {
export function subscribeToDesignSystemChanges(listener) {
void listener;
return () => {};
}
}