logger: try 2

This commit is contained in:
Cynthia Foxwell 2022-10-09 12:44:34 -06:00
parent 15d62ed301
commit 798a71ae1b

View file

@ -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]);
}