pre-migration commit
This commit is contained in:
+1
-4
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user