Skip to content

Commit

Permalink
uses QUIET_MODE or DURING_ALIAS to filter TRACE_INVOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom O'Hara committed Nov 2, 2023
1 parent f2f7035 commit 44b7199
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mezcla/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,10 @@ def debug_init():
command_line = " ".join(sys.argv)
assertion(command_line)
if (command_line and (command_line != "-c") and (command_line != "-m")):
# TODO2: simplify misc. trace suppression options (n.b., check shellscript repo)
if _getenv_bool("TRACE_INVOCATION", False):
trace(USUAL, command_line)
if not (_getenv_bool("QUIET_MODE", False) or _getenv_bool("DURING_ALIAS", False)):
trace(USUAL, command_line)
trace_expr(DETAILED, sys.argv)
open_debug_file()

Expand Down

0 comments on commit 44b7199

Please sign in to comment.