mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 20:54:26 +08:00
rearrange logging so message comes first in console
This commit is contained in:
parent
c05bc8ee63
commit
eacbb99f15
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ function Logger(boundArgs = {}) {
|
|||
if (_.isEmpty(boundArgs)) {
|
||||
return console[logFn](first, ...args)
|
||||
}
|
||||
return console[logFn](boundArgs, first, ...args)
|
||||
return console[logFn](first, ...args, boundArgs)
|
||||
}
|
||||
return console[logFn]({...boundArgs, ...first}, ...args)
|
||||
return console[logFn](...args, {...boundArgs, ...first})
|
||||
}
|
||||
})
|
||||
logger.child = (extraBoundArgs) => Logger({...boundArgs, ...extraBoundArgs})
|
||||
|
|
Loading…
Add table
Reference in a new issue