Skip to content

Commit

Permalink
coala_quickstart: Fix errors due to logging
Browse files Browse the repository at this point in the history
Configures the stream handler of the `logging` module
to be `stdout` to avoid ``ValueError`` while writing
to the log stream.

Fixes #143
  • Loading branch information
satwikkansal committed Jul 30, 2017
1 parent 02369a9 commit 4ceaf2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coala_quickstart/coala_quickstart.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import argparse
import logging
import os
import sys

from pyprint.ConsolePrinter import ConsolePrinter

Expand Down Expand Up @@ -57,6 +59,7 @@ def main():
arg_parser = _get_arg_parser()
args = arg_parser.parse_args()

logging.basicConfig(stream=sys.stdout)
printer = ConsolePrinter()
log_printer = LogPrinter(printer)

Expand Down

0 comments on commit 4ceaf2f

Please sign in to comment.