Log warnings and other paunch info to stderr
Currently, paunch can log to a file, and unconditionally logs to stdout. So the normal output from the tool can be polluted by warning messages, which makes parsing difficult. Force the StreamHandler to log on stderr instead. File logging is unchanged. Change-Id: I01e6c65d18f3a1889f8aaa75e2e6f68175bbc608 Closes-Bug: #1811384
This commit is contained in:
parent
99ac720bf6
commit
0435006508
|
@ -33,7 +33,7 @@ def configure_logging(name, level=3, log_file=None):
|
|||
ll = logging.WARNING
|
||||
|
||||
log.setLevel(ll)
|
||||
handler = logging.StreamHandler(sys.stdout)
|
||||
handler = logging.StreamHandler(sys.stderr)
|
||||
handler.setLevel(ll)
|
||||
if log_file:
|
||||
fhandler = logging.FileHandler(log_file)
|
||||
|
|
Loading…
Reference in New Issue