Skip to content

Commit

Permalink
Update serialization failure note to be a warn level event in `BaseEv…
Browse files Browse the repository at this point in the history
…ent`

[CT-2264](#7113) wants
logging messages about event serialization failure to be `WARNING`
level events. This does that.
  • Loading branch information
QMalcolm committed Mar 31, 2023
1 parent e914b6a commit f106e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/events/base_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, *args, **kwargs):
if "pytest" in sys.modules:
raise Exception(error_msg)
else:
fire_event(Note(msg=error_msg))
fire_event(Note(msg=error_msg), level=EventLevel.WARN)
self.pb_msg = msg_cls()

def __setattr__(self, key, value):
Expand Down

0 comments on commit f106e9b

Please sign in to comment.