diff --git a/__init__.py b/__init__.py index de9b44f..03b897c 100644 --- a/__init__.py +++ b/__init__.py @@ -55,7 +55,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.22.2)") +print("### Loading: ComfyUI-Manager (V0.22.3)") comfy_ui_required_revision = 1240 comfy_ui_revision = "Unknown" diff --git a/prestartup_script.py b/prestartup_script.py index 4e41139..6c4afe0 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -14,9 +14,10 @@ if os.path.exists("comfyui.log"): original_stdout = sys.stdout original_stderr = sys.stderr + class Logger: def __init__(self, filename): - self.file = open(filename, "a") + self.file = open(filename, "w", encoding="utf-8") def write(self, message): self.file.write(message)