Log to stderr

This commit is contained in:
hroff-1902 2019-10-30 04:04:28 +03:00
parent 5254059fe4
commit 9c180e587b
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ def setup_logging(config: Dict[str, Any]) -> None:
# Log level
verbosity = config['verbosity']
# Log to stdout, not stderr
log_handlers: List[logging.Handler] = [logging.StreamHandler(sys.stdout)]
# Log to stderr
log_handlers: List[logging.Handler] = [logging.StreamHandler(sys.stderr)]
if config.get('logfile'):
log_handlers.append(RotatingFileHandler(config['logfile'],