Skip to content
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

Do not log traceback when log format is json #7973

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

ChenyuLInx
Copy link
Contributor

@ChenyuLInx ChenyuLInx commented Jun 28, 2023

resolves #7972
This is only for 1.3 and pre versions of dbt-core.

When calling logger.debug with exc_info set to True, logger will actually print out the formatted log to stdout(?). We want to avoid it when we set log_format to JSON

Will backport to 1.2 and 1.1 and 1.0 once this is merged.

@cla-bot cla-bot bot added the cla:yes label Jun 28, 2023
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@jtcohen6
Copy link
Contributor

jtcohen6 commented Jun 28, 2023

@ChenyuLInx Change itself seems fine to me

Will backport to 1.2 and 1.1 and 1.0 once this is merged.

We've no longer been cutting patches of v1.0 and v1.1 (since they've reached EOL) - let's discuss offline if there's a need to do this? (Update: started this internal Slack thread to discuss)

@ChenyuLInx ChenyuLInx requested review from aaronraff and peterallenwebb and removed request for aaronraff and chrispasakarnis June 28, 2023 15:23
@ChenyuLInx ChenyuLInx merged commit 283f716 into 1.3.latest Jul 7, 2023
16 checks passed
@ChenyuLInx ChenyuLInx deleted the cl/unify_json_log branch July 7, 2023 22:05
@ChenyuLInx ChenyuLInx added backport 1.0.latest Tag for PR to be backported to the 1.0.latest branch backport 1.1.latest backport 1.2.latest This PR will be backported to the 1.2.latest branch labels Jul 7, 2023
github-actions bot pushed a commit that referenced this pull request Jul 7, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)
github-actions bot pushed a commit that referenced this pull request Jul 7, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)
github-actions bot pushed a commit that referenced this pull request Jul 7, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)
ChenyuLInx added a commit that referenced this pull request Jul 12, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)

Co-authored-by: Chenyu Li <chenyu.li@dbtlabs.com>
ChenyuLInx added a commit that referenced this pull request Jul 12, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)

Co-authored-by: Chenyu Li <chenyu.li@dbtlabs.com>
ChenyuLInx added a commit that referenced this pull request Jul 12, 2023
* do not log traceback when log format is json

* changelog

(cherry picked from commit 283f716)

Co-authored-by: Chenyu Li <chenyu.li@dbtlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.0.latest Tag for PR to be backported to the 1.0.latest branch backport 1.1.latest backport 1.2.latest This PR will be backported to the 1.2.latest branch cla:yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants