Skip to content

Commit

Permalink
Pass in the level as a third argument to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Mikus authored and indexzero committed Mar 17, 2015
1 parent b6fd9b9 commit a0d28fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/logger.js
Expand Up @@ -155,7 +155,7 @@ Logger.prototype.log = function (level) {
});

this.filters.forEach(function(filter) {
var filtered = filter(msg, meta);
var filtered = filter(msg, meta, level);
if (typeof filtered === 'string')
msg = filtered;
else {
Expand Down

0 comments on commit a0d28fa

Please sign in to comment.