Map logLevel to info or error
This commit is contained in:
parent
8ce22eca95
commit
b7d6f3f419
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue