Skip to content

Commit e3780fd

Browse files
author
Matthew Fisher
committed
fix(client): use only stdout handler
If a warning message was logged, it would be logged to both stdout and stderr. Using only the stdout handler will only log messages to stdout.
1 parent 08d97fa commit e3780fd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

client/deis.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,14 +2169,11 @@ def _dispatch_cmd(method, args):
21692169

21702170
def _init_logger():
21712171
logger = logging.getLogger(__name__)
2172-
stdoutHandler = logging.StreamHandler(sys.stdout)
2173-
stderrHandler = logging.StreamHandler(sys.stderr)
2172+
handler = logging.StreamHandler(sys.stdout)
21742173
# TODO: add a --debug flag
21752174
logger.setLevel(logging.INFO)
2176-
stdoutHandler.setLevel(logging.INFO)
2177-
stderrHandler.setLevel(logging.WARNING)
2178-
logger.addHandler(stdoutHandler)
2179-
logger.addHandler(stderrHandler)
2175+
handler.setLevel(logging.INFO)
2176+
logger.addHandler(handler)
21802177

21812178

21822179
def main():

0 commit comments

Comments
 (0)