-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call sites in core/dbt (excluding main.py) #4202
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor note
core/dbt/exceptions.py
Outdated
if log_fmt is not None: | ||
msg = log_fmt.format(msg) | ||
logger.warning(msg) | ||
fire_event(GeneralWarning(msg=str(exc), log_fmt=log_fmt)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to pass the actual value here instead of its string rep if we can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was passing in the string form to prevent circular imports. Had to move pluralize
into the new format.py
and fix all imports of pluralize
from utils.py
to point to format.py
. While all the imports are not in /events
, they are all for purposes of logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice. Yeah if it's a big pain in the butt to not pass strings, it's not a hill I'll die on, but it looks like you got it work.
1a3f572
to
28d34d9
Compare
* add struct logging to compilation * add struct logging to tracking * add struct logging to utils * add struct logging to exceptions * fixed some misc errors * updated to send raw ex, removed resulting circ dep
* add struct logging to compilation * add struct logging to tracking * add struct logging to utils * add struct logging to exceptions * fixed some misc errors * updated to send raw ex, removed resulting circ dep
* add struct logging to compilation * add struct logging to tracking * add struct logging to utils * add struct logging to exceptions * fixed some misc errors * updated to send raw ex, removed resulting circ dep
* add struct logging to compilation * add struct logging to tracking * add struct logging to utils * add struct logging to exceptions * fixed some misc errors * updated to send raw ex, removed resulting circ dep
* add struct logging to compilation * add struct logging to tracking * add struct logging to utils * add struct logging to exceptions * fixed some misc errors * updated to send raw ex, removed resulting circ dep automatic commit by git-black, original commits: d8b97c1
Description
Modifying call sites for structured logging in core/dbt/deps excluding core/dbt/deps/main.py & logger.py
Checklist
CHANGELOG.md
and added information about my change