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 {
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 ( {
You can’t perform that action at this time.
0 commit comments