don't add module name on standard messages

too much clutter
This commit is contained in:
Antoine Beaupré 2015-10-02 11:22:38 -04:00
parent 2f78b8ad41
commit b09cdb4a63
1 changed files with 3 additions and 1 deletions

View File

@ -513,7 +513,9 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
logging.raiseExceptions = False
l = logging.getLogger('')
sh = logging.StreamHandler(sys.stderr)
sh.setFormatter(logging.Formatter('%(name)s: %(message)s'))
# other formatters will probably want this, but let's remove
# clutter on stderr
#sh.setFormatter(logging.Formatter('%(name)s: %(message)s'))
l.addHandler(sh)
levels = { None: logging.WARNING,
0: logging.WARNING,