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

add DASH_PRUNE_ERRORS env var #862

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dash/_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def load_dash_env_vars():
'DASH_HOT_RELOAD_WATCH_INTERVAL',
'DASH_HOT_RELOAD_MAX_RETRY',
'DASH_SILENCE_ROUTES_LOGGING',
'DASH_PRUNE_ERRORS',
)
}
)
Expand Down
7 changes: 5 additions & 2 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ def enable_dev_tools(
- DASH_HOT_RELOAD_WATCH_INTERVAL
- DASH_HOT_RELOAD_MAX_RETRY
- DASH_SILENCE_ROUTES_LOGGING
- DASH_PRUNE_ERRORS

:param debug: Enable/disable all the dev tools unless overridden by the
arguments or environment variables. Default is ``True`` when
Expand Down Expand Up @@ -1488,8 +1489,9 @@ def enable_dev_tools(
:type dev_tools_silence_routes_logging: bool

:param dev_tools_prune_errors: Reduce tracebacks to just user code,
stripping out Flask and Dash pieces. `True` by default, set to
`False` to see the complete traceback.
stripping out Flask and Dash pieces. Only available with debugging.
`True` by default, set to `False` to see the complete traceback.
env: ``DASH_PRUNE_ERRORS``
:type dev_tools_prune_errors: bool

:return: debug
Expand Down Expand Up @@ -1681,6 +1683,7 @@ def run_server(
:param dev_tools_prune_errors: Reduce tracebacks to just user code,
stripping out Flask and Dash pieces. Only available with debugging.
`True` by default, set to `False` to see the complete traceback.
env: ``DASH_PRUNE_ERRORS``
:type dev_tools_prune_errors: bool

:param flask_run_options: Given to `Flask.run`
Expand Down