feat(core): support %h for non-buffer types in logger
This commit is contained in:
parent
27d3058408
commit
c9a86c28f0
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export class Logger {
|
|||
const val = args[idx]
|
||||
|
||||
args.splice(idx, 1)
|
||||
if (m === '%h') return Buffer.isBuffer(val) ? val.toString('hex') : String(val)
|
||||
if (m === '%h') return Buffer.isBuffer(val) ? val.toString('hex') : val.toString(16)
|
||||
if (m === '%b') return String(Boolean(val))
|
||||
|
||||
if (m === '%j') {
|
||||
|
|
Loading…
Reference in a new issue