Skip to content

Commit 0310427

Browse files
committed
Merge branch 'main' of github.com:jina-ai/node-DeepResearch
2 parents 401eb9a + 7c4f91e commit 0310427

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tools/code-sandbox.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,11 @@ export class CodeSandbox {
138138
const generation = await this.generateCode(problem, attempts);
139139
const { code } = generation;
140140

141-
logDebug(`Coding attempt ${i + 1}:`, { code });
142141
// Evaluate the code
143142
const result = this.evaluateCode(code);
144-
logDebug(`Coding attempt ${i + 1} success:`, { result });
145143

146144
if (result.success) {
145+
logInfo('Coding success:', { problem, result });
147146
return {
148147
solution: {
149148
code,
@@ -153,7 +152,7 @@ export class CodeSandbox {
153152
};
154153
}
155154

156-
logError('Coding error:', { error: result.error });
155+
logWarning('Coding error:', { error: result.error });
157156

158157
// Store the failed attempt
159158
attempts.push({

0 commit comments

Comments
 (0)