diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-30 10:27:09 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-30 10:27:09 -0400 |
commit | 7383624ac422ccbfb062e13d7bd901d39f942286 (patch) | |
tree | 9048ab215b15fc101a93c624ef3abe4ed807063a /src/lib | |
parent | 04bf137f978b52c93fc6ab69c91ff10bd91db518 (diff) | |
download | bcfg2-7383624ac422ccbfb062e13d7bd901d39f942286.tar.gz bcfg2-7383624ac422ccbfb062e13d7bd901d39f942286.tar.bz2 bcfg2-7383624ac422ccbfb062e13d7bd901d39f942286.zip |
log to stderr, not stdout
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Logger.py | 4 |
1 files 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()) |