Skip to content

Commit f2e54e5

Browse files
committed
Reduce log spam part 2
1 parent bdd07da commit f2e54e5

File tree

4 files changed

+11
-43
lines changed

4 files changed

+11
-43
lines changed

backend/src/system-prompt/search-system-prompt.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ export function getSearchSystemPrompt(
8484
gitChangesPrompt,
8585
]).join('\n\n')
8686

87-
logger.debug(
88-
{
89-
fileTreeTokens,
90-
fileTreeTokenBudget,
91-
systemInfoTokens,
92-
systemPromptTokens: countTokensJson(systemPrompt),
93-
messagesTokens,
94-
duration: Date.now() - startTime,
95-
},
96-
'search system prompt tokens',
97-
)
87+
// logger.debug(
88+
// {
89+
// fileTreeTokens,
90+
// fileTreeTokenBudget,
91+
// systemInfoTokens,
92+
// systemPromptTokens: countTokensJson(systemPrompt),
93+
// messagesTokens,
94+
// duration: Date.now() - startTime,
95+
// },
96+
// 'search system prompt tokens',
97+
// )
9898

9999
return systemPrompt
100100
}

backend/src/tools/handlers/tool/find-files.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,6 @@ export const handleFindFiles = ((params: {
118118
})
119119
}
120120

121-
logger.debug(
122-
{
123-
content: prompt,
124-
prompt,
125-
addedFilesPaths: addedFiles.map((f) => f.path),
126-
updatedFilePaths,
127-
printedPaths,
128-
},
129-
'find_files tool call',
130-
)
131-
132121
if (addedFiles.length > 0) {
133122
return renderReadFilesResult(addedFiles, fileContext.tokenCallers ?? {})
134123
}

backend/src/tools/handlers/tool/read-files.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { getFileReadingUpdates } from '../../../get-file-reading-updates'
2-
import { logger } from '../../../util/logger'
32
import { renderReadFilesResult } from '../../../util/parse-tool-call-xml'
43

54
import type { CodebuffToolHandlerFunction } from '../handler-function-type'
@@ -72,16 +71,6 @@ export const handleReadFiles = ((params: {
7271
},
7372
)
7473

75-
logger.debug(
76-
{
77-
content: paths,
78-
paths,
79-
addedFilesPaths: addedFiles.map((f) => f.path),
80-
updatedFilePaths,
81-
},
82-
'read_files tool call',
83-
)
84-
8574
return renderReadFilesResult(addedFiles, fileContext.tokenCallers ?? {})
8675
})()
8776

backend/src/tools/handlers/tool/set-output.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ export const handleSetOutput = ((params: {
6565
// Set the output (completely replaces previous output)
6666
agentState.output = output
6767

68-
logger.debug(
69-
{
70-
output,
71-
agentType: agentState.agentType,
72-
agentId: agentState.agentId,
73-
updatedOutput: agentState.output,
74-
},
75-
'set_output tool call completed',
76-
)
77-
7868
return 'Output set'
7969
}
8070

0 commit comments

Comments
 (0)