不要怂,就是干,撸起袖子干!

Commit ebb66ad7 by Domi

Prevent `log` options from being dumped to log

This commit (https://github.com/sequelize/sequelize/commit/6147c8e814494dcaf33adf614d07276f4ecc605b) made logging more customizable, but introduced a bug: All options passed to `sequelize.log` where also dumped to log file. This revision removes the options from the set of logged arguments.
1 parent 4899c3d0
Showing with 3 additions and 0 deletions
......@@ -1047,6 +1047,9 @@ module.exports = (function() {
if (last && Utils._.isPlainObject(last) && last.hasOwnProperty('logging')) {
options = last;
// remove options from set of logged arguments
args.splice(args.length-1, 1);
} else {
options = this.options;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!