mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Refactor: Migrate console.error in ripGrep.ts to debugLogger (#15201)
This commit is contained in:
@@ -279,7 +279,7 @@ class GrepToolInvocation extends BaseToolInvocation<
|
|||||||
returnDisplay: displayMessage,
|
returnDisplay: displayMessage,
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Error during GrepLogic execution: ${error}`);
|
debugLogger.warn(`Error during GrepLogic execution: ${error}`);
|
||||||
const errorMessage = getErrorMessage(error);
|
const errorMessage = getErrorMessage(error);
|
||||||
return {
|
return {
|
||||||
llmContent: `Error during grep search operation: ${errorMessage}`,
|
llmContent: `Error during grep search operation: ${errorMessage}`,
|
||||||
@@ -441,7 +441,7 @@ class GrepToolInvocation extends BaseToolInvocation<
|
|||||||
|
|
||||||
return this.parseRipgrepJsonOutput(output, absolutePath);
|
return this.parseRipgrepJsonOutput(output, absolutePath);
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
console.error(`GrepLogic: ripgrep failed: ${getErrorMessage(error)}`);
|
debugLogger.debug(`GrepLogic: ripgrep failed: ${getErrorMessage(error)}`);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user