From a680b387e504db1ba012a6fb641738cda522171f Mon Sep 17 00:00:00 2001 From: Zach Gray Date: Thu, 6 Oct 2016 17:53:25 -0700 Subject: [PATCH] pass loggly http client errors to winston continuation so they get propagated up correctly and can be consumed by end users --- lib/winston-loggly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/winston-loggly.js b/lib/winston-loggly.js index 88f761a..0a9fe3d 100644 --- a/lib/winston-loggly.js +++ b/lib/winston-loggly.js @@ -108,9 +108,9 @@ Loggly.prototype.log = function (level, msg, meta, callback) { // // Helper function for responded to logging. // - function logged() { + function logged(err) { self.emit('logged'); - callback(null, true); + callback(err, true); } return meta.tags