mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 23:14:32 -07:00
use debugLogger instead of console (#12095)
This commit is contained in:
committed by
GitHub
parent
e115083fac
commit
0e4dce23b2
@@ -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,
|
||||
)}`,
|
||||
|
||||
Reference in New Issue
Block a user