mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
fix: logger encoding
This commit is contained in:
parent
fd666684dd
commit
3cc7bbc600
@ -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"
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user