From 4fb7600a453607477f2953b86fed9a0f51962797 Mon Sep 17 00:00:00 2001 From: telamonian Date: Sat, 1 Jun 2024 03:51:45 -0400 Subject: [PATCH] fixed grammar of "Skip loading..." log warnings --- nodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodes.py b/nodes.py index 8f6a57b37..acb2402fe 100644 --- a/nodes.py +++ b/nodes.py @@ -1871,7 +1871,7 @@ def load_custom_node(module_path, ignore=set()): module_name = sp[0] if module_name in EXTENSION_MODULES_LOADED: - logging.warning(f"Skip {module_path} module for custom nodes due to it already being loaded.") + logging.warning(f"Skip loading custom nodes from {module_path}. Module already loaded.") return False else: EXTENSION_MODULES_LOADED.add(module_name) @@ -1902,7 +1902,7 @@ def load_custom_node(module_path, ignore=set()): NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS) return True else: - logging.warning(f"Skip {module_path} module for custom nodes due to the lack of NODE_CLASS_MAPPINGS.") + logging.warning(f"Skip loading custom nodes from {module_path}. No NODE_CLASS_MAPPINGS found in module.") return False except Exception as e: logging.warning(traceback.format_exc()) @@ -1942,7 +1942,7 @@ def load_custom_nodes_entry_points(): for ep in entry_points(group="comfyui.web_directory"): if ep.module in EXTENSION_MODULES_LOADED: - logging.warning(f"Skip {ep.module} module for web_directory entry point due to it already being loaded.") + logging.warning(f"Skip loading web_directory entry point from {ep.module}. Module already loaded.") continue web_directory = ep.load() @@ -1955,7 +1955,7 @@ def load_custom_nodes_entry_points(): for ep in entry_points(group="comfyui.node_class_mappings"): if ep.module in EXTENSION_MODULES_LOADED: - logging.warning(f"Skip {ep.module} module for node_class_mappings entry point due to it already being loaded.") + logging.warning(f"Skip loading node_class_mappings entry point from {ep.module}. Module already loaded.") continue class_mapping = ep.load() @@ -1967,7 +1967,7 @@ def load_custom_nodes_entry_points(): for ep in entry_points(group="comfyui.node_display_name_mappings"): if ep.module in EXTENSION_MODULES_LOADED: - logging.warning(f"Skip {ep.module} module for node_display_name_mappings entry point due to it already being loaded.") + logging.warning(f"Skip loading node_display_name_mappings entry point from {ep.module}. Module already loaded.") continue display_name_mapping = ep.load()