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

Make tracebacks opt-in #27059

Merged
merged 1 commit into from Oct 14, 2022
Merged

Conversation

jedcunningham
Copy link
Member

Instead of showing tracebacks by default, make the end user opt-in instead.

Instead of showing tracebacks by default, make the end user opt-in instead.
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth changing the tracebace template to mention the config setting? (I.e. so if they get a 500 and want to see tracebacks then get pointed to something to turn it on.)

@jedcunningham
Copy link
Member Author

I'd argue the right way to see it is to look at the webserver logs instead? If you start the webserver in debug mode, you get it regardless of this config choice too.

@jedcunningham jedcunningham merged commit 4b113ef into apache:main Oct 14, 2022
@jedcunningham jedcunningham deleted the default_error_page branch October 14, 2022 19:34
@jedcunningham jedcunningham added this to the Airflow 2.4.2 milestone Oct 18, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Oct 18, 2022
ephraimbuddy pushed a commit that referenced this pull request Oct 18, 2022
Instead of showing tracebacks by default, make the end user opt-in instead.

(cherry picked from commit 4b113ef)
@potiuk
Copy link
Member

potiuk commented Oct 23, 2022

I'd argue the right way to see it is to look at the webserver logs instead? If you start the webserver in debug mode, you get it regardless of this config choice too.

Quite agree. i think pretty much every time we got reported with the tracebacks originated from the UI, it lacked enough context.

jedcunningham added a commit to astronomer/airflow that referenced this pull request Nov 3, 2022
Instead of showing tracebacks by default, make the end user opt-in instead.

(cherry picked from commit 4b113ef)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants