Pass write down from commands to logging handler.

This commit is contained in:
Anthony Sottile 2014-04-13 18:43:43 -07:00
parent 374ef75835
commit 5386b0eea0
2 changed files with 2 additions and 2 deletions

View file

@ -230,7 +230,7 @@ def _run_hook(runner, hook_id, args, write):
def run(runner, args, write=sys.stdout.write):
# Set up our logging handler
logger.addHandler(LoggingHandler(args.color))
logger.addHandler(LoggingHandler(args.color, write=write))
logger.setLevel(logging.INFO)
with staged_files_only(runner.cmd_runner):