From 2772101bbf2b8b84a19acf46dc2a4f2f3a089afb Mon Sep 17 00:00:00 2001 From: bennykok Date: Thu, 1 Feb 2024 22:36:43 +0800 Subject: [PATCH] chore: print out the log for debugging --- custom_routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_routes.py b/custom_routes.py index 0487a0b..84d0444 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -269,6 +269,10 @@ def update_run(prompt_id, status: Status): with open(comfyui_file_path, 'r') as log_file: # log_data = log_file.read() # Move to the last read line + all_log_data = log_file.read() # Read all log data + print("All log data before skipping:", all_log_data) # Log all data before skipping + log_file.seek(0) # Reset file pointer to the beginning + for _ in range(last_read_line_number): next(log_file) log_data = log_file.read()