From 34b195683610043ca4ecea3d299d6d78a4406137 Mon Sep 17 00:00:00 2001 From: memosr Date: Thu, 4 Jun 2026 15:57:53 +0300 Subject: [PATCH] chore(moonwell): remove leftover DEBUG console.error calls Two console.error("DEBUG - ...") statements were left in the mint and redeem catch blocks of moonwellActionProvider.ts. The errors are already returned to the caller as strings, so these were pure debug noise. Library code that calls console.error pollutes stdout/stderr in agent runtimes and can surface raw on-chain error details that the caller already handled. Removed both lines without touching the surrounding error-return logic. --- .../src/action-providers/moonwell/moonwellActionProvider.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/typescript/agentkit/src/action-providers/moonwell/moonwellActionProvider.ts b/typescript/agentkit/src/action-providers/moonwell/moonwellActionProvider.ts index 6664098d8..87314384e 100644 --- a/typescript/agentkit/src/action-providers/moonwell/moonwellActionProvider.ts +++ b/typescript/agentkit/src/action-providers/moonwell/moonwellActionProvider.ts @@ -169,7 +169,6 @@ Important notes: )}`; } } catch (error) { - console.error("DEBUG - Mint error:", error); if (error instanceof Error) { return `Error minting Moonwell MToken: ${error.message}`; } @@ -265,7 +264,6 @@ Important notes: (_, value) => (typeof value === "bigint" ? value.toString() : value), )}`; } catch (error) { - console.error("DEBUG - Redeem error:", error); if (error instanceof Error) { return `Error redeeming from Moonwell MToken: ${error.message}`; }