This reverts commit
34aa8b7c4bb6f5e2e788108e024c9cd70bdb3431. Writing
error messages to stderr would also include backtraces, something we
tried to avoid in the past.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
if debug:
stderr_handler.setLevel(logging.NOTSET)
else:
- stderr_handler.setLevel(logging.ERROR)
+ stderr_handler.setLevel(logging.CRITICAL)
root_logger.addHandler(stderr_handler)
if syslog in (constants.SYSLOG_YES, constants.SYSLOG_ONLY):