More debug shutdown logging
This commit is contained in:
1 parent
d857326e19
commit
f99245569f
1 file changed
+3
-2
@@ -67,17 +67,18 @@ class Core(Plugin):
|
|||||||
|
|
||||||
def initShutdown(self, restart = False):
|
def initShutdown(self, restart = False):
|
||||||
log.info('Shutting down' if not restart else 'Restarting')
|
log.info('Shutting down' if not restart else 'Restarting')
|
||||||
|
|
||||||
fireEvent('app.shutdown')
|
fireEvent('app.shutdown')
|
||||||
|
log.debug('Every plugin got shutdown event')
|
||||||
|
|
||||||
loop = True
|
loop = True
|
||||||
while loop:
|
while loop:
|
||||||
|
log.debug('Asking who is running')
|
||||||
still_running = fireEvent('plugin.running')
|
still_running = fireEvent('plugin.running')
|
||||||
|
log.debug('Still running: %s' % still_running)
|
||||||
|
|
||||||
if len(still_running) == 0:
|
if len(still_running) == 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
log.debug('Still running: %s' % still_running)
|
|
||||||
for running in still_running:
|
for running in still_running:
|
||||||
running = list(set(running) - set(self.ignore_restart))
|
running = list(set(running) - set(self.ignore_restart))
|
||||||
if len(running) > 0:
|
if len(running) > 0:
|
||||||
|
|||||||
Reference in new issue
Block a user