Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
OtterCode committed Jun 25, 2018
1 parent 1726e10 commit 814821d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/winston-loggly.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ Loggly.prototype.log = function (level, msg, meta, callback) {
callback(err, true);
}

<<<<<<< HEAD
return (meta && meta.tags)
=======
return meta && meta.tags
>>>>>>> 0feed30d2ec0acd6f6d7260aca6b6de71ca50c76
? this.client.log(message, meta.tags, logged)
: this.client.log(message, logged);
};
Expand Down
9 changes: 9 additions & 0 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ module.exports.testLevels = function (transport, assertMsg, assertFn) {
primmetadatatest[assertMsg] = assertFn;
tests['when passed primitive metadata'] = primmetadatatest;

var nummetadatatest = {
topic: function () {
transport.log('info', 'test message', 123456789, this.callback.bind(this, null));
}
};

nummetadatatest[assertMsg] = assertFn;
tests['when passed numeric metadata'] = nummetadatatest;

// circular references aren't supportded by regular JSON, and it's not supported
// by node-loggly-bulk. I'm omitting it for now. If it wants to be fixed, then
// node-loggly-bulk needs an update.
Expand Down

0 comments on commit 814821d

Please sign in to comment.