Skip to content

Commit

Permalink
Do not override input params
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaubert committed May 12, 2020
1 parent 4038900 commit cd651fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ module.exports = class RedisPool extends EventEmitter {
}

_log(info) {
info = Object.assign({ name: this.options.name }, info)
this.logger.error(JSON.stringify(info));
this.logger.error(JSON.stringify(Object.assign({ name: this.options.name }, info)));
}
};

Expand Down

0 comments on commit cd651fd

Please sign in to comment.