fix logger missing debug level, replace console.error with logger.error

This commit is contained in:
Alex Holliday committed 2024-11-25 10:06:40 +08:00
1 parent f90208bc0f
commit 6dab90f518
2 files changed
+10 -1

No files matched your search

+8
View File
@@ -44,6 +44,14 @@ class Logger {
this.log = NO_OP;
return;
}
if (logLevel === "debug") {
this.error = console.error.bind(console);
this.warn = console.warn.bind(console);
this.info = console.info.bind(console);
this.log = console.log.bind(console);
return;
}
}
cleanup() {