The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Do not console.log while consoleListener (#18322)
martmull5e92fb4fc6c8
diff --git a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.tsindex ac5a17fca99..704d64c0f59 100644--- a/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts+++ b/packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/drivers/local.driver.ts@@ -253,7 +253,7 @@ export class LocalDriver implements LogicFunctionDriver {const json = process.argv[2];payload = json ? JSON.parse(json) : undefined;const out = await mod.${handlerName}(payload);- console.log(JSON.stringify({ ok: true, result: out }));+ process.stdout.write(JSON.stringify({ ok: true, result: out }));process.exit(0);}} catch (err) {@@ -261,7 +261,7 @@ export class LocalDriver implements LogicFunctionDriver {if (process.send) {process.send({ ok: false, error: msg, stack: err?.stack });} else {- console.error(msg);+ process.stdout.write(msg);}process.exit(1);}