From a4128eed9a4843e90df8d9d70c2b86035ec145c6 Mon Sep 17 00:00:00 2001 From: Martin Picollo <36853148+picollomartin@users.noreply.github.com> Date: Thu, 23 Jul 2020 12:28:53 -0300 Subject: [PATCH] fix(pino): Fix mutation of context between logs (#77) --- lib/loggers/pino.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/loggers/pino.js b/lib/loggers/pino.js index 83e0561..dd7f452 100644 --- a/lib/loggers/pino.js +++ b/lib/loggers/pino.js @@ -7,6 +7,6 @@ module.exports = { getLogger: (options = {}) => pino({ ...options, - mixin: () => getLogMetadata() + mixin: () => ({ ...getLogMetadata() }) }) }; diff --git a/package-lock.json b/package-lock.json index 3661bcb..9fb3257 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "express-wolox-logger", - "version": "4.0.0", + "version": "4.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d5ed90b..5b5d2c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "express-wolox-logger", - "version": "4.0.0", + "version": "4.0.1", "description": "ExpressJS Wolox Logger", "main": "index.js", "scripts": {