mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-30 08:03:59 +00:00
More logging
This commit is contained in:
parent
fff9148a83
commit
6a3b9d45c7
@ -13,13 +13,14 @@ hakiApp = null
|
||||
tasks = [
|
||||
(callback) ->
|
||||
if state.get('virgin')
|
||||
console.log('Device is virgin. Boostrapping')
|
||||
console.log('Device is virgin. Bootstrapping')
|
||||
handler = (error) ->
|
||||
if error
|
||||
console.log('Bootstrapping failed with error', error)
|
||||
console.log('Trying again in 10s')
|
||||
setTimeout((-> bootstrap(handler)), 10000)
|
||||
else
|
||||
console.log('Bootstrapping successful')
|
||||
state.set('virgin', false)
|
||||
callback()
|
||||
bootstrap(handler)
|
||||
|
Loading…
x
Reference in New Issue
Block a user