Skip to content

Commit 5d5d08e

Browse files
committed
Disable noisy logs
1 parent ba66001 commit 5d5d08e

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

backend/src/tools/handlers/tool/spawn-agents.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)