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