Skip to content

Commit

Permalink
Make tracebacks opt-in (#27059)
Browse files Browse the repository at this point in the history
Instead of showing tracebacks by default, make the end user opt-in instead.

(cherry picked from commit 4b113ef)
  • Loading branch information
jedcunningham authored and ephraimbuddy committed Oct 18, 2022
1 parent e4b87ba commit 92cd1bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@
version_added: 1.10.8
type: string
example: ~
default: "True"
default: "False"
- name: dag_default_view
description: |
Default DAG view. Valid values are: ``grid``, ``graph``, ``duration``, ``gantt``, ``landing_times``
Expand Down
2 changes: 1 addition & 1 deletion airflow/config_templates/default_airflow.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ expose_config = False
expose_hostname = True

# Expose stacktrace in the web server
expose_stacktrace = True
expose_stacktrace = False

# Default DAG view. Valid values are: ``grid``, ``graph``, ``duration``, ``gantt``, ``landing_times``
dag_default_view = grid
Expand Down
3 changes: 3 additions & 0 deletions newsfragments/000.significant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Default for ``[webserver] expose_stacktrace`` changed to ``False``

The default for ``[webserver] expose_stacktrace`` has been set to ``False``, instead of ``True``. This means administrators must opt-in to expose tracebacks to end users.

0 comments on commit 92cd1bf

Please sign in to comment.