diff --git a/reflex/utils/console.py b/reflex/utils/console.py index 0e0b64b84b7..f317f481ca4 100644 --- a/reflex/utils/console.py +++ b/reflex/utils/console.py @@ -157,7 +157,7 @@ def debug(msg: str, dedupe: bool = False, **kwargs): progress.console.print(msg_, **kwargs) else: print(msg_, **kwargs) - if should_use_log_file_console(): + if should_use_log_file_console() and kwargs.pop("progress", None) is None: print_to_log_file(f"[purple]Debug: {msg}[/purple]", **kwargs)