Skip to content

Commit

Permalink
Merge pull request #85 from TheFriendlyCoder/stdout_fix
Browse files Browse the repository at this point in the history
Fixes #81 Redirected standard output to stdout instead of stderr
  • Loading branch information
TheFriendlyCoder committed Sep 28, 2018
2 parents 57caf68 + 0ef53e4 commit 885afb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/friendlyshell/basic_logger_mixin.py
@@ -1,6 +1,7 @@
"""Mixin for displaying output from a friendly shell"""
import logging
import os
import sys


class BasicLoggerMixin(object):
Expand Down Expand Up @@ -37,7 +38,7 @@ def __init__(self, *args, **kwargs):
global_logger.setLevel(logging.DEBUG)

# All info messages and above are going to the console
console_handler = logging.StreamHandler()
console_handler = logging.StreamHandler(sys.stdout)
console_format = logging.Formatter(fmt="%(message)s")
console_handler.setLevel(logging.INFO)
console_handler.setFormatter(console_format)
Expand Down

0 comments on commit 885afb2

Please sign in to comment.