More logging

This commit is contained in:
Petros Angelatos 2013-07-21 14:32:46 +01:00
parent fff9148a83
commit 6a3b9d45c7

View File

@ -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)