From b7d6f3f4196b39ebf2b4e5e472d4f903ff52de17 Mon Sep 17 00:00:00 2001 From: goga-m Date: Thu, 26 Oct 2017 16:34:38 +0300 Subject: [PATCH] Map logLevel to info or error --- lib/logs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logs.js b/lib/logs.js index aaec25b3..60456260 100644 --- a/lib/logs.js +++ b/lib/logs.js @@ -49,7 +49,7 @@ function update (deviceId, logLines) { id: log.id, deviceId: deviceId, message: log.msg, - logLevel: log.level, + logLevel: _.contains('error', _.lowerCase(log.msg)) ? 'error' : 'info', timestamp: log.timestamp } return _.mapKeys(_.snakeCase, formatted)