From 3ba61c7265da07ecdf6b685d2aebf0b2bde74b31 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 12 Apr 2025 00:11:25 +0800 Subject: [PATCH] Don't log every single node being replaced when node defs refreshed (#918) Currently, when node defs are refreshed (e.g., by pressing "r" shortcut), every single node def is logged, which is useless when there's hundred of nodes and clutters console. This PR changes to only log those messages when in debug mode. --- src/LiteGraphGlobal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LiteGraphGlobal.ts b/src/LiteGraphGlobal.ts index 3c373591f..bdc1deefb 100644 --- a/src/LiteGraphGlobal.ts +++ b/src/LiteGraphGlobal.ts @@ -299,7 +299,7 @@ export class LiteGraphGlobal { } const prev = this.registered_node_types[type] - if (prev) { + if (prev && this.debug) { console.log("replacing node type:", type) }