Mercurial > code > home > repos > light9
changeset 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 | b7c752e49355 |
children | 70df1b4972c5 |
files | bin/run_local.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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):