Skip to content
Browse files

[fix] Fix for typeof null === "object"

  • Loading branch information...
1 parent 29fe697 commit 5d361a9b6e1abc8443b91020dcce847f4abb889c @indexzero indexzero committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston/utils.js
View
2 lib/winston/utils.js
@@ -103,7 +103,7 @@ var log = exports.log = function (level, msg, meta, options) {
output += targetLevel + ': ' + msg;
- if (typeof meta === 'object' && Object.keys(meta).length > 0) {
+ if (meta && typeof meta === 'object' && Object.keys(meta).length > 0) {
output += ' ' + qs.unescape(qs.stringify(meta, ','));
}

0 comments on commit 5d361a9

Please sign in to comment.
Something went wrong with that request. Please try again.