mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Pass write down from commands to logging handler.
This commit is contained in:
parent
374ef75835
commit
5386b0eea0
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue