mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-07 06:36:43 +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 info = (...args: any[]) => {
|
||||||
const _args = (() => {
|
const _args = (() => {
|
||||||
if (isLevelGt(LogLevelName.Info, _config.level)) {
|
if (isLevelGt(LogLevelName.Info, _config.level)) {
|
||||||
return [chalk.gray(`INFO`), ...args]
|
return [_pfx(chalk.gray(`INFO`)), ...args]
|
||||||
}
|
}
|
||||||
return [...args]
|
return [...args]
|
||||||
})()
|
})()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user