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