From 51b5910e685874e42b32a4399878774fb3afb6bb Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 20 Aug 2010 01:59:27 +0200 Subject: [PATCH] Add process name to BaseProcess logging --- mopidy/utils/process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mopidy/utils/process.py b/mopidy/utils/process.py index 5e783b73..73224840 100644 --- a/mopidy/utils/process.py +++ b/mopidy/utils/process.py @@ -19,10 +19,11 @@ def unpickle_connection(pickled_connection): class BaseProcess(multiprocessing.Process): def run(self): + logger.debug(u'%s: Starting process', self.name) try: self.run_inside_try() except KeyboardInterrupt: - logger.info(u'Interrupted by user') + logger.info(u'%s: Interrupted by user', self.name) sys.exit(0) except SettingsError as e: logger.error(e.message)