use debugLogger instead of console (#12095)

This commit is contained in:
Tommaso Sciortino
2025-10-27 11:35:16 -07:00
committed by GitHub
parent e115083fac
commit 0e4dce23b2
5 changed files with 9 additions and 18 deletions
+2 -2
View File
@@ -199,7 +199,7 @@ class GrepToolInvocation extends BaseToolInvocation<
returnDisplay: `Found ${matchCount} ${matchTerm}`,
};
} catch (error) {
console.error(`Error during GrepLogic execution: ${error}`);
debugLogger.warn(`Error during GrepLogic execution: ${error}`);
const errorMessage = getErrorMessage(error);
return {
llmContent: `Error during grep search operation: ${errorMessage}`,
@@ -552,7 +552,7 @@ class GrepToolInvocation extends BaseToolInvocation<
return allMatches;
} catch (error: unknown) {
console.error(
debugLogger.warn(
`GrepLogic: Error in performGrepSearch (Strategy: ${strategyUsed}): ${getErrorMessage(
error,
)}`,