Skip to content

Commit

Permalink
fix(pino): Fix mutation of context between logs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
picollomartin authored Jul 23, 2020
1 parent cbf8a89 commit a4128ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/loggers/pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
getLogger: (options = {}) =>
pino({
...options,
mixin: () => getLogMetadata()
mixin: () => ({ ...getLogMetadata() })
})
};
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-wolox-logger",
"version": "4.0.0",
"version": "4.0.1",
"description": "ExpressJS Wolox Logger",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a4128ee

Please sign in to comment.