Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed May 20, 2024
1 parent af7ed83 commit ac09c6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbt_common/events/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def create_line(self, msg: EventMsg) -> str:
def write_line(self, msg: EventMsg):
line = self.create_line(msg)
if self._python_logger is not None:
# We send PrintEvent to logger as error so it goes to stdout
# when --quiet flag is set.
# --quiet flag will filter out all events lower than ERROR.
if isinstance(msg.data, PrintEvent):
level = "error"
else:
Expand Down

0 comments on commit ac09c6d

Please sign in to comment.