Skip to content

Commit

Permalink
switched to vars()
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Nov 18, 2021
1 parent 446d3fe commit c7e0103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/events/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def create_text_log_line(e: T_Event, msg_fn: Callable[[T_Event], str]) -> str:
def create_json_log_line(e: T_Event, msg_fn: Callable[[T_Event], str]) -> str:
values = e.to_dict(scrub_secrets(msg_fn(e), env_secrets()))
values['ts'] = e.ts.isoformat()
values['data'] = {k: scrub_secrets(str(v), env_secrets()) for (k, v) in e.__dict__.items()}
values['data'] = {k: scrub_secrets(str(v), env_secrets()) for (k, v) in vars(e).items()}
log_line = json.dumps(values, sort_keys=True)
return log_line

Expand Down

0 comments on commit c7e0103

Please sign in to comment.