You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"level":"info"}
Console: { Error: [object Object]
at Object.<anonymous> (/home/ankit/Desktop/play/winston.js:10:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
level: 'info',
[Symbol(level)]: 'info',
[Symbol(message)]: '{"level":"info"}' }
Why winston is mutating the err object by adding level property in err object?
The text was updated successfully, but these errors were encountered:
Please tell us about your environment:
winston
version?winston@3
node -v
outputs: v10.13.0What is the problem?
Whenever I call
logger.info(err)
or any logger function then it addslevel
property in the params.Example
Why winston is mutating the err object by adding
level
property in err object?The text was updated successfully, but these errors were encountered: