diff bin/run_local.py @ 1221:3c78608a216a

don't break all non-root log channels Ignore-this: 2908404aef5c5040c84aa577c201ef0b
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 08 Jun 2015 06:54:08 +0000
parents 0d295af23c4b
children 0025b04a1c0a
line wrap: on
line diff
--- a/bin/run_local.py	Mon Jun 08 06:53:12 2015 +0000
+++ b/bin/run_local.py	Mon Jun 08 06:54:08 2015 +0000
@@ -24,7 +24,9 @@
     pass
 
 progName = sys.argv[0].split('/')[-1]
-log = logging.getLogger(progName)
+log = logging.getLogger() # this has to get the root logger
+log.name = progName # but we can rename it for clarity
+
 
 class CSH(coloredlogs.ColoredStreamHandler):
     def render_timestamp(self, created):