From cffb3b3757d7a89842b66543e18becc626127853 Mon Sep 17 00:00:00 2001 From: Mark Lugar <14322382+araglu@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:56:54 -0500 Subject: [PATCH] Disable debug stacktrace by default This is too spammy and not helpful enough to enable by default. --- uit/uit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/uit/uit.py b/uit/uit.py index 41f9e8d..02c8828 100644 --- a/uit/uit.py +++ b/uit/uit.py @@ -1028,14 +1028,13 @@ def _process_uit_debug(self, resp, local_vars): if not isinstance(debug_stacktrace_allowlist, list): debug_stacktrace_allowlist = [] else: - debug_stacktrace_allowlist = ["uit"] - # This only shows the 'uit' directory by default. To change which directories are shown in the stacktrace, + debug_stacktrace_allowlist = [] + # This is disabled by default. To enable the stacktrace and select which directories are shown, # modify the PyUIT yaml config file (default location is ~/.uit) with a list like this: # debug_stacktrace_allowlist: # - uit # - your_codebase_dir - # To disable the stacktrace, put "debug_stacktrace_allowlist:" in the config file with no list below it nice_trace = "" if debug_stacktrace_allowlist: stacktrace = traceback.extract_stack()