Skip to content

Commit b5abacd

Browse files
authored
Disable debug stacktrace by default (#79)
This is too spammy and not helpful enough to enable by default.
1 parent 4b4a14a commit b5abacd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

uit/uit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,13 @@ def _process_uit_debug(self, resp, local_vars):
10271027
if not isinstance(debug_stacktrace_allowlist, list):
10281028
debug_stacktrace_allowlist = []
10291029
else:
1030-
debug_stacktrace_allowlist = ["uit"]
1031-
# This only shows the 'uit' directory by default. To change which directories are shown in the stacktrace,
1030+
debug_stacktrace_allowlist = []
1031+
# This is disabled by default. To enable the stacktrace and select which directories are shown,
10321032
# modify the PyUIT yaml config file (default location is ~/.uit) with a list like this:
10331033
# debug_stacktrace_allowlist:
10341034
# - uit
10351035
# - your_codebase_dir
10361036

1037-
# To disable the stacktrace, put "debug_stacktrace_allowlist:" in the config file with no list below it
10381037
nice_trace = ""
10391038
if debug_stacktrace_allowlist:
10401039
stacktrace = traceback.extract_stack()

0 commit comments

Comments
 (0)