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)