mirror of
https://github.com/outline/outline.git
synced 2026-12-02 01:34:47 +03:00
fix: 'undefined' logged
This commit is contained in:
1 parent
9c3c0fe418
commit
c2edfca6e5
1 file changed
+3
-1
@@ -83,8 +83,10 @@ class Logger {
|
||||
|
||||
if (isProduction) {
|
||||
this.output.warn(message, extra);
|
||||
} else {
|
||||
} else if (extra) {
|
||||
console.warn(message, extra);
|
||||
} else {
|
||||
console.warn(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user