Allow system messages to not be tracked

Also don't track update lock events

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-02-14 13:24:50 +00:00
parent 50fdee4290
commit 4e783fcd86

View File

@ -586,7 +586,7 @@ module.exports = class DeviceState extends EventEmitter
# If there was an error then schedule another attempt briefly in the future.
if err instanceof UpdatesLockedError
message = "Updates are locked, retrying in #{prettyMs(delay, compact: true)}..."
@logger.logSystemMessage(message)
@logger.logSystemMessage(message, {}, 'updateLocked', false)
console.log(message)
else
console.log('Scheduling another update attempt due to failure: ', delay, err)