mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12:58 +08:00
[fix] Reduce excessive logging output to debug level
- Convert batch tracking messages to debug level (batch start, history saved) - Convert task processing details to debug level - Convert cache update messages to debug level - Replace print() with logging.debug() for task processing - Keep user-relevant messages at info level (ComfyUI updates, installation success) - Resolves verbose output appearing without --verbose flag
This commit is contained in:
parent
b089db79c5
commit
c888ea6435
@ -275,7 +275,7 @@ class TaskQueue:
|
|||||||
)
|
)
|
||||||
self.batch_start_time = datetime.now().isoformat()
|
self.batch_start_time = datetime.now().isoformat()
|
||||||
self.batch_state_before = self._capture_system_state()
|
self.batch_state_before = self._capture_system_state()
|
||||||
logging.info("[ComfyUI-Manager] Started new batch: %s", self.batch_id)
|
logging.debug("[ComfyUI-Manager] Started new batch: %s", self.batch_id)
|
||||||
|
|
||||||
def get(
|
def get(
|
||||||
self, timeout: Optional[float] = None
|
self, timeout: Optional[float] = None
|
||||||
@ -472,7 +472,7 @@ class TaskQueue:
|
|||||||
batch_record.model_dump(), json_file, indent=4, default=str
|
batch_record.model_dump(), json_file, indent=4, default=str
|
||||||
)
|
)
|
||||||
|
|
||||||
logging.info(f"[ComfyUI-Manager] Batch history saved: {batch_path}")
|
logging.debug(f"[ComfyUI-Manager] Batch history saved: {batch_path}")
|
||||||
|
|
||||||
# Reset batch tracking
|
# Reset batch tracking
|
||||||
self.batch_id = None
|
self.batch_id = None
|
||||||
@ -823,13 +823,13 @@ async def task_worker():
|
|||||||
if task is None:
|
if task is None:
|
||||||
# Check if queue is truly empty (no pending or running tasks)
|
# Check if queue is truly empty (no pending or running tasks)
|
||||||
if task_queue.total_count() == 0 and len(task_queue.running_tasks) == 0:
|
if task_queue.total_count() == 0 and len(task_queue.running_tasks) == 0:
|
||||||
logging.info("\n[ComfyUI-Manager] All tasks are completed.")
|
logging.debug("\n[ComfyUI-Manager] All tasks are completed.")
|
||||||
|
|
||||||
# Trigger batch history serialization if there are completed tasks
|
# Trigger batch history serialization if there are completed tasks
|
||||||
if task_queue.done_count() > 0:
|
if task_queue.done_count() > 0:
|
||||||
logging.info("[ComfyUI-Manager] Finalizing batch history...")
|
logging.debug("[ComfyUI-Manager] Finalizing batch history...")
|
||||||
task_queue.finalize()
|
task_queue.finalize()
|
||||||
logging.info("[ComfyUI-Manager] Batch history saved.")
|
logging.debug("[ComfyUI-Manager] Batch history saved.")
|
||||||
|
|
||||||
logging.info("\nAfter restarting ComfyUI, please refresh the browser.")
|
logging.info("\nAfter restarting ComfyUI, please refresh the browser.")
|
||||||
|
|
||||||
@ -843,7 +843,7 @@ async def task_worker():
|
|||||||
item, task_index = task
|
item, task_index = task
|
||||||
kind = item.kind
|
kind = item.kind
|
||||||
|
|
||||||
print(f"Processing task: {kind} with item: {item} at index: {task_index}")
|
logging.debug(f"Processing task: {kind} with item: {item} at index: {task_index}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if kind == "install":
|
if kind == "install":
|
||||||
@ -1692,7 +1692,7 @@ async def default_cache_update():
|
|||||||
with manager_util.cache_lock:
|
with manager_util.cache_lock:
|
||||||
with open(cache_uri, "w", encoding="utf-8") as file:
|
with open(cache_uri, "w", encoding="utf-8") as file:
|
||||||
json.dump(json_obj, file, indent=4, sort_keys=True)
|
json.dump(json_obj, file, indent=4, sort_keys=True)
|
||||||
logging.info(f"[ComfyUI-Manager] default cache updated: {uri}")
|
logging.debug(f"[ComfyUI-Manager] default cache updated: {uri}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(
|
logging.error(
|
||||||
f"[ComfyUI-Manager] Failed to perform initial fetching '{filename}': {e}"
|
f"[ComfyUI-Manager] Failed to perform initial fetching '{filename}': {e}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user