logger: try 2
This commit is contained in:
parent
15d62ed301
commit
798a71ae1b
1 changed files with 2 additions and 2 deletions
|
@ -73,6 +73,6 @@ function baseLogger(prefix, level, ...message) {
|
|||
|
||||
module.exports = {};
|
||||
for (const level in LEVEL_COLORS) {
|
||||
module.exports[level] = (prefix, message) =>
|
||||
baseLogger(prefix, level, message);
|
||||
module.exports[level] = (prefix, ...message) =>
|
||||
baseLogger.apply(null, [prefix, level, ...message]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue