From a470d07238ebc73a9b64e5347275fb93e7c2d018 Mon Sep 17 00:00:00 2001 From: Shwetajain148 Date: Tue, 11 Jul 2017 17:18:46 +0530 Subject: [PATCH] handle undefined error --- lib/winston-loggly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston-loggly.js b/lib/winston-loggly.js index bf8ec81..425a5b8 100644 --- a/lib/winston-loggly.js +++ b/lib/winston-loggly.js @@ -114,7 +114,7 @@ Loggly.prototype.log = function (level, msg, meta, callback) { callback(null, true); } - return meta.tags + return meta && meta.tags ? this.client.log(message, meta.tags, logged) : this.client.log(message, logged); };