mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 00:45:23 +00:00
Display update lock notification in dashboard logs
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
5894a9baf3
commit
27b68b5845
@ -584,7 +584,9 @@ module.exports = class DeviceState extends EventEmitter
|
||||
delay = Math.min((2 ** @failedUpdates) * constants.backoffIncrement, @maxPollTime)
|
||||
# If there was an error then schedule another attempt briefly in the future.
|
||||
if err instanceof UpdatesLockedError
|
||||
console.log("Updates are locked, retrying in #{delay}ms...")
|
||||
message = "Updates are locked, retrying in #{delay}ms..."
|
||||
@logger.logSystemMessage(message)
|
||||
console.log(message)
|
||||
else
|
||||
console.log('Scheduling another update attempt due to failure: ', delay, err)
|
||||
@triggerApplyTarget({ force, delay, initial })
|
||||
|
Loading…
x
Reference in New Issue
Block a user