aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/logger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/logger.ts')
-rw-r--r--src/utils/logger.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/logger.ts b/src/utils/logger.ts
index 76a5fb6b..8e9928b5 100644
--- a/src/utils/logger.ts
+++ b/src/utils/logger.ts
@@ -8,11 +8,15 @@ if (typeof (window) !== "undefined") {
export function logDebug(message: string) {
if (typeof (window) !== "undefined") {
window["SBLogs"].debug.push(`[${new Date().toISOString()}] ${message}`);
+ } else {
+ console.log(`[${new Date().toISOString()}] ${message}`)
}
}
export function logWarn(message: string) {
if (typeof (window) !== "undefined") {
window["SBLogs"].warn.push(`[${new Date().toISOString()}] ${message}`);
+ } else {
+ console.warn(`[${new Date().toISOString()}] ${message}`)
}
} \ No newline at end of file