mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add quotes for strings in logging.
This commit is contained in:
parent
ca6bc69630
commit
ce88143903
@ -11,7 +11,12 @@ export class Logger {
|
||||
let t = ''
|
||||
const args = []
|
||||
for (const name in fields) {
|
||||
t += ' %c%s=%c%o'
|
||||
if (typeof fields[name] === 'string' || fields[name] instanceof String) {
|
||||
t += ' %c%s=%c"%s"'
|
||||
} else {
|
||||
t += ' %c%s=%c%o'
|
||||
}
|
||||
|
||||
args.push('color:#498ad8;', name, '', fields[name])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user