From f602539c10d09d1b8edc86028eb66423ab406a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20H=C3=B6ffler?= Date: Fri, 13 Feb 2026 11:55:41 +0100 Subject: [PATCH] Execute action now injects flow ID into logging if present --- templates/lib/lookups/execute.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/lib/lookups/execute.js b/templates/lib/lookups/execute.js index 631d363..dd5e68d 100644 --- a/templates/lib/lookups/execute.js +++ b/templates/lib/lookups/execute.js @@ -9,7 +9,7 @@ */ const { process: actionProcess } = require("../actions/action"); -const logger = require("@openintegrationhub/ferryman/lib/logging"); +let logger = require("@openintegrationhub/ferryman/lib/logging"); /* * data will have the following format: @@ -22,12 +22,16 @@ const logger = require("@openintegrationhub/ferryman/lib/logging"); async function processAction(req, res, _, actionParams) { const { secretId, data } = actionParams; const { ferryman } = req; - const { operationId: functionName, cfg } = data; + const { operationId: functionName, cfg, flowId } = data; if (!cfg) cfg = {}; if (!cfg.nodeSettings) cfg.nodeSettings = {}; logger.info({ params: actionParams }, "Running execute with params"); + if (flowId) { + logger = logger.child({ flowId }); + } + const msg = { data: data.data?.data || {}, metadata: {} }; const snapshot = {},