mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-04 05:06:41 +00:00
fix(pockethost): fix INFO prefixing on logger
This commit is contained in:
parent
139468f503
commit
3daf7f5310
5
.changeset/lazy-feet-remember.md
Normal file
5
.changeset/lazy-feet-remember.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'pockethost': patch
|
||||
---
|
||||
|
||||
Fix: [INFO] logging prefixes
|
@ -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]
|
||||
})()
|
||||
|
Loading…
x
Reference in New Issue
Block a user