@@ -190,14 +190,15 @@ export const handleSpawnAgents = ((params: {
190190
191191 if ( result . status === 'fulfilled' ) {
192192 subAgentCredits = result . value . agentState . creditsUsed || 0
193- logger . debug (
194- {
195- parentAgentId : validatedState . agentState . agentId ,
196- subAgentType : agentInfo . agent_type ,
197- subAgentCredits,
198- } ,
199- 'Aggregating successful subagent cost' ,
200- )
193+ // Note (James): Try not to include frequent logs with narrow debugging value.
194+ // logger.debug(
195+ // {
196+ // parentAgentId: validatedState.agentState.agentId,
197+ // subAgentType: agentInfo.agent_type,
198+ // subAgentCredits,
199+ // },
200+ // 'Aggregating successful subagent cost',
201+ // )
201202 } else if ( result . reason ?. agentState ?. creditsUsed ) {
202203 // Even failed agents may have incurred partial costs
203204 subAgentCredits = result . reason . agentState . creditsUsed || 0
@@ -213,14 +214,15 @@ export const handleSpawnAgents = ((params: {
213214
214215 if ( subAgentCredits > 0 ) {
215216 validatedState . agentState . creditsUsed += subAgentCredits
216- logger . debug (
217- {
218- parentAgentId : validatedState . agentState . agentId ,
219- addedCredits : subAgentCredits ,
220- totalCredits : validatedState . agentState . creditsUsed ,
221- } ,
222- 'Updated parent agent total cost' ,
223- )
217+ // Note (James): Try not to include frequent logs with narrow debugging value.
218+ // logger.debug(
219+ // {
220+ // parentAgentId: validatedState.agentState.agentId,
221+ // addedCredits: subAgentCredits,
222+ // totalCredits: validatedState.agentState.creditsUsed,
223+ // },
224+ // 'Updated parent agent total cost',
225+ // )
224226 }
225227 } )
226228
0 commit comments