diff --git a/src/common/util/debug-logger.ts b/src/common/util/debug-logger.ts index 74f7c7dbd..1a9a614d9 100644 --- a/src/common/util/debug-logger.ts +++ b/src/common/util/debug-logger.ts @@ -11,6 +11,7 @@ const logMessagesKeys: (keyof typeof STRINGS)[] = [ 'INITIALIZING_PLUGIN', 'LOADING_PLUGIN_FROM_PATH', 'COMPUTING_PIPELINE_FOR_NODE', + 'COMPUTING_COMPONENT_PIPELINE', 'REGROUPING', 'OBSERVING', 'MERGING_DEFAULTS_WITH_INPUT_DATA', @@ -110,9 +111,12 @@ const debugLog = (level: LogLevel, args: any[], debugMode: boolean) => { const date = new Date().toISOString(); const plugin = pluginNameManager.currentPluginName; - const formattedMessage = `${level}: ${date}: ${ - plugin ? plugin + ': ' : '' - }${args.join(', ')}`; + const isExeption = args[0].includes('**Computing'); + const message = `${level}: ${date}: ${plugin ? plugin + ': ' : ''}${args.join( + ', ' + )}`; + + const formattedMessage = isExeption ? args.join(', ') : message; if (debugMode) { switch (level) { diff --git a/src/if-run/config/strings.ts b/src/if-run/config/strings.ts index 5ddabdecf..64ef8bde4 100644 --- a/src/if-run/config/strings.ts +++ b/src/if-run/config/strings.ts @@ -52,6 +52,8 @@ Note that for the '--output' option you also need to define the output type in y `Loading ${pluginName} from ${path}`, COMPUTING_PIPELINE_FOR_NODE: (nodeName: string) => `Running compute pipeline: \`${nodeName}\` plugin`, + COMPUTING_COMPONENT_PIPELINE: (component: string) => + `**Computing \`${component}\` pipeline**`, REGROUPING: 'Regrouping', OBSERVING: (nodeName: string) => `Running observe pipeline: \`${nodeName}\` plugin`, diff --git a/src/if-run/lib/compute.ts b/src/if-run/lib/compute.ts index b5558af92..805216768 100644 --- a/src/if-run/lib/compute.ts +++ b/src/if-run/lib/compute.ts @@ -18,6 +18,7 @@ const { EMPTY_PIPELINE, CONFIG_WARN, COMPUTING_PIPELINE_FOR_NODE, + COMPUTING_COMPONENT_PIPELINE, REGROUPING, OBSERVING, } = STRINGS; @@ -27,6 +28,7 @@ const { */ const traverse = async (children: any, params: ComputeParams) => { for (const child in children) { + console.debug(COMPUTING_COMPONENT_PIPELINE(child)); await computeNode(children[child], params); } };