diff bin/run_local.py @ 1210:8e8d778f9e21

use program name instead of 'root' for logger channel, so it's faster to see what a terminal is running Ignore-this: fdca118c7a00e52c1caa002d2523bfff
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 06 Jun 2015 19:13:39 +0000
parents f66586649ae3
children 0d295af23c4b
line wrap: on
line diff
--- a/bin/run_local.py	Sat Jun 06 09:39:00 2015 +0000
+++ b/bin/run_local.py	Sat Jun 06 19:13:39 2015 +0000
@@ -22,7 +22,9 @@
     faulthandler.enable()
 except ImportError:
     pass
-log = logging.getLogger()
+
+progName = sys.argv[0].split('/')[-1]
+log = logging.getLogger(progName)
 
 class CSH(coloredlogs.ColoredStreamHandler):
     def render_timestamp(self, created):