Skip to content

Commit

Permalink
Try removing dupe logging during integration tests (#4275)
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  4a8a680
  • Loading branch information
jtcohen6 authored and iknox-fa committed Feb 8, 2022
1 parent dd26bf6 commit 40ae154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/dbt/events/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ def setup_event_logger(log_path, level_override=None):
stdout_handler.setLevel(level)
# clear existing stdout TextIOWrapper stream handlers
this.STDOUT_LOG.handlers = [
h for h in this.STDOUT_LOG.handlers
if not (hasattr(h, 'stream') and isinstance(h.stream, TextIOWrapper)) # type: ignore
h
for h in this.STDOUT_LOG.handlers
if not (hasattr(h, "stream") and isinstance(h.stream, TextIOWrapper)) # type: ignore
]
this.STDOUT_LOG.addHandler(stdout_handler)

Expand Down

0 comments on commit 40ae154

Please sign in to comment.