diff --git a/progress.py b/progress.py index c3970b1..2f00ad6 100644 --- a/progress.py +++ b/progress.py @@ -3,7 +3,7 @@ import sys comfyui_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) if comfyui_root not in sys.path: sys.path.insert(0, comfyui_root) - + from server import PromptServer from io import BytesIO from PIL import Image, ImageOps @@ -26,15 +26,7 @@ _is_broadcasting = False # Prevent infinite recursion def patched_send_sync(event, data, sid=None): global _is_broadcasting - - # Debug: Log what events we're seeing - if event == 'progress': - print(f"[ImageLab DEBUG] Intercepted 'progress' event: {data}") - elif event == BinaryEventTypes.UNENCODED_PREVIEW_IMAGE: - print(f"[ImageLab DEBUG] Intercepted UNENCODED_PREVIEW_IMAGE") - elif event == BinaryEventTypes.PREVIEW_IMAGE_WITH_METADATA: - print(f"[ImageLab DEBUG] Intercepted PREVIEW_IMAGE_WITH_METADATA") - + # Always call original first _original_send_sync(event, data, sid)