Revert "utils.log: Write error messages to stderr"
authorMichael Hanselmann <hansmi@google.com>
Mon, 3 Oct 2011 10:46:27 +0000 (12:46 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 3 Oct 2011 10:52:46 +0000 (12:52 +0200)
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>

lib/utils/log.py

index ceff250..281f590 100644 (file)
@@ -230,7 +230,7 @@ def SetupLogging(logfile, program, debug=0, stderr_logging=False,
     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):