Skip to content

Commit

Permalink
[fix] Update bad reference to .common in hoisted .serialize() code
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 3, 2011
1 parent 139a0e7 commit 1a5474c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ exports.serialize = function (obj, key) {
msg += keys[i] + '=['

for (var j = 0, l = obj[keys[i]].length; j < l; j++) {
msg += common.serialize(obj[keys[i]][j]);
msg += exports.serialize(obj[keys[i]][j]);
if (j < l - 1) {
msg += ', ';
}
Expand All @@ -211,7 +211,7 @@ exports.serialize = function (obj, key) {
msg += ']';
}
else {
msg += common.serialize(obj[keys[i]], keys[i]);
msg += exports.serialize(obj[keys[i]], keys[i]);
}

if (i < length - 1) {
Expand Down

0 comments on commit 1a5474c

Please sign in to comment.