summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug.hellmann@dreamhost.com>2012-04-29 13:23:25 -0400
committerDoug Hellmann <doug.hellmann@dreamhost.com>2012-04-29 13:23:25 -0400
commit20e8878663cfdb13778bcadd209f1bb9f4bbc41a (patch)
tree85fa85de6dbfb63ae43c543f678417e21d40be6f
parentae9707617d1e29ca84e6f6067e63570a10870130 (diff)
downloadcliff-tablib-20e8878663cfdb13778bcadd209f1bb9f4bbc41a.tar.gz
use the stderr handle given to the app instead of assuming the default
-rw-r--r--cliff/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cliff/app.py b/cliff/app.py
index 6b1a851..3d80710 100644
--- a/cliff/app.py
+++ b/cliff/app.py
@@ -118,7 +118,7 @@ class App(object):
root_logger.addHandler(file_handler)
# Send higher-level messages to the console via stderr
- console = logging.StreamHandler()
+ console = logging.StreamHandler(self.stderr)
console_level = {0: logging.WARNING,
1: logging.INFO,
2: logging.DEBUG,