File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,11 @@ export class CodeSandbox {
138
138
const generation = await this . generateCode ( problem , attempts ) ;
139
139
const { code } = generation ;
140
140
141
- logDebug ( `Coding attempt ${ i + 1 } :` , { code } ) ;
142
141
// Evaluate the code
143
142
const result = this . evaluateCode ( code ) ;
144
- logDebug ( `Coding attempt ${ i + 1 } success:` , { result } ) ;
145
143
146
144
if ( result . success ) {
145
+ logInfo ( 'Coding success:' , { problem, result } ) ;
147
146
return {
148
147
solution : {
149
148
code,
@@ -153,7 +152,7 @@ export class CodeSandbox {
153
152
} ;
154
153
}
155
154
156
- logError ( 'Coding error:' , { error : result . error } ) ;
155
+ logWarning ( 'Coding error:' , { error : result . error } ) ;
157
156
158
157
// Store the failed attempt
159
158
attempts . push ( {
You can’t perform that action at this time.
0 commit comments