From 7c4f91e24c1cd00162109fc1c284eb901a3b9395 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Wed, 18 Jun 2025 21:37:18 -0700 Subject: [PATCH] fix: update logging for coding attempts --- src/tools/code-sandbox.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/code-sandbox.ts b/src/tools/code-sandbox.ts index 3a70657..df6849b 100644 --- a/src/tools/code-sandbox.ts +++ b/src/tools/code-sandbox.ts @@ -138,12 +138,11 @@ export class CodeSandbox { const generation = await this.generateCode(problem, attempts); const { code } = generation; - logDebug(`Coding attempt ${i + 1}:`, { code }); // Evaluate the code const result = this.evaluateCode(code); - logDebug(`Coding attempt ${i + 1} success:`, { result }); if (result.success) { + logInfo('Coding success:', { problem, result }); return { solution: { code, @@ -153,7 +152,7 @@ export class CodeSandbox { }; } - logError('Coding error:', { error: result.error }); + logWarning('Coding error:', { error: result.error }); // Store the failed attempt attempts.push({