From f99245569f873f04d355455a87a71d758526dd14 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 27 Jan 2012 13:12:22 +0100 Subject: [PATCH] More debug shutdown logging --- couchpotato/core/_base/_core/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/_base/_core/main.py b/couchpotato/core/_base/_core/main.py index a4df60a..4eb61cb 100644 --- a/couchpotato/core/_base/_core/main.py +++ b/couchpotato/core/_base/_core/main.py @@ -67,17 +67,18 @@ class Core(Plugin): def initShutdown(self, restart = False): log.info('Shutting down' if not restart else 'Restarting') - fireEvent('app.shutdown') + log.debug('Every plugin got shutdown event') loop = True while loop: + log.debug('Asking who is running') still_running = fireEvent('plugin.running') + log.debug('Still running: %s' % still_running) if len(still_running) == 0: break - log.debug('Still running: %s' % still_running) for running in still_running: running = list(set(running) - set(self.ignore_restart)) if len(running) > 0: