From 7383624ac422ccbfb062e13d7bd901d39f942286 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 30 Oct 2012 10:27:09 -0400 Subject: log to stderr, not stdout --- src/lib/Bcfg2/Logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Bcfg2/Logger.py b/src/lib/Bcfg2/Logger.py index 06379ce7b..a06d6e79e 100644 --- a/src/lib/Bcfg2/Logger.py +++ b/src/lib/Bcfg2/Logger.py @@ -134,8 +134,8 @@ class FragmentingSysLogHandler(logging.handlers.SysLogHandler): def add_console_handler(level=logging.DEBUG): - """Add a logging handler that logs at a level to sys.stdout.""" - console = logging.StreamHandler(sys.stdout) + """ Add a logging handler that logs at a level to sys.stderr """ + console = logging.StreamHandler(sys.stderr) console.setLevel(level) # tell the handler to use this format console.setFormatter(TermiosFormatter()) -- cgit v1.2.3-1-g7c22