fix: logger suppressing some messages

This commit is contained in:
Ben Allfree
2023-11-08 04:54:04 +00:00
parent daca8072c6
commit 69dc5aa5cd

View File

@@ -130,9 +130,8 @@ export const createLogger = (config: Partial<Config>) => {
const info = (...args: any[]) => {
_log(
LogLevelName.Info,
...(isLevelGt(LogLevelName.Info, level)
? [_pfx(chalk.gray(`INFO`)), ...args]
: args),
_pfx(isLevelGt(LogLevelName.Info, level) ? chalk.gray(`INFO`) : ''),
...args,
)
}