tracker: better restart logging
This commit is contained in:
parent
a19c3ad0c3
commit
c2fc5016e6
1 changed files with 9 additions and 1 deletions
|
|
@ -756,7 +756,15 @@ export default class App {
|
|||
if (data === 'a_stop') {
|
||||
this.stop(false)
|
||||
} else if (data === 'a_start') {
|
||||
void this.start({}, true)
|
||||
this.waitStatus(ActivityState.NotActive).then(() => {
|
||||
this.start({}, true)
|
||||
.then((r) => {
|
||||
this.debug.info('Worker restart, session too long', r)
|
||||
})
|
||||
.catch((e) => {
|
||||
this.debug.error('Worker restart failed', e)
|
||||
})
|
||||
})
|
||||
} else if (data === 'not_init') {
|
||||
this.debug.warn('OR WebWorker: writer not initialised. Restarting tracker')
|
||||
} else if (data.type === 'failure') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue