pre-migration commit

This commit is contained in:
2026-04-26 15:08:35 -07:00
parent c724cb36b1
commit 39ee857559
32 changed files with 335 additions and 106 deletions
+1 -4
View File
@@ -146,7 +146,7 @@ def debug_panel(
def debug(*args, **kwargs) -> None:
"""Print debug message if debug logging is enabled.
Automatically prepends [filename.function_name] to all output.
Automatically routes through log() so debug output keeps the caller prefix.
"""
if not _DEBUG_ENABLED:
return
@@ -166,9 +166,6 @@ def debug(*args, **kwargs) -> None:
_debug_db_log(caller_name=caller_name, message=f"<rich:{type(renderable).__name__}>")
return
# Prepend DEBUG label
args = ("DEBUG:", *args)
# Use the same logic as log()
log(*args, file=target_file, **kwargs)