fix(pockethost): fix INFO prefixing on logger

This commit is contained in:
Ben Allfree 2024-06-27 13:54:47 -07:00
parent 139468f503
commit 3daf7f5310
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'pockethost': patch
---
Fix: [INFO] logging prefixes

View File

@ -96,7 +96,7 @@ export const createLogger = (config: Partial<LoggerConfig>) => {
const info = (...args: any[]) => {
const _args = (() => {
if (isLevelGt(LogLevelName.Info, _config.level)) {
return [chalk.gray(`INFO`), ...args]
return [_pfx(chalk.gray(`INFO`)), ...args]
}
return [...args]
})()