1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Replace print with logging (#6138)

* Replace print with logging

* nit

* nit

* nit

* nit

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-12-20 13:24:55 -08:00
committed by GitHub
parent bddb02660c
commit d7969cb070
22 changed files with 49 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ def pytest_collection_modifyitems(items):
last_items = []
for test_name in LAST_TESTS:
for item in items.copy():
print(item.module.__name__, item)
print(item.module.__name__, item) # noqa: T201
if item.module.__name__ == test_name:
last_items.append(item)
items.remove(item)

View File

@@ -134,7 +134,7 @@ class TestExecution:
use_lru, lru_size = request.param
if use_lru:
pargs += ['--cache-lru', str(lru_size)]
print("Running server with args:", pargs)
print("Running server with args:", pargs) # noqa: T201
p = subprocess.Popen(pargs)
yield
p.kill()
@@ -150,8 +150,8 @@ class TestExecution:
try:
comfy_client.connect(listen=listen, port=port)
except ConnectionRefusedError as e:
print(e)
print(f"({i+1}/{n_tries}) Retrying...")
print(e) # noqa: T201
print(f"({i+1}/{n_tries}) Retrying...") # noqa: T201
else:
break
return comfy_client

View File

@@ -171,8 +171,8 @@ class TestInference:
try:
comfy_client.connect(listen=listen, port=port)
except ConnectionRefusedError as e:
print(e)
print(f"({i+1}/{n_tries}) Retrying...")
print(e) # noqa: T201
print(f"({i+1}/{n_tries}) Retrying...") # noqa: T201
else:
break
return comfy_client