Reduce noisy logging for missing .geminiignore file. (#793)

This commit is contained in:
DeWitt Clinton 2025-06-06 07:47:43 -07:00 committed by GitHub
parent 368e9ab4d8
commit c80ff146d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View File

@ -128,9 +128,7 @@ describe('loadGeminiIgnorePatterns', () => {
const patterns = loadGeminiIgnorePatterns(tempDir);
expect(patterns).toEqual([]);
expect(consoleLogSpy).toHaveBeenCalledWith(
'[INFO] No .geminiignore file found. Proceeding without custom ignore patterns.',
);
expect(consoleLogSpy).not.toHaveBeenCalled();
expect(mockedFsReadFileSync).toHaveBeenCalledWith(ignoreFilePath, 'utf-8');
});

View File

@ -51,9 +51,6 @@ export function loadGeminiIgnorePatterns(workspaceRoot: string): string[] {
) {
if (error.code === 'ENOENT') {
// .geminiignore not found, which is fine.
console.log(
'[INFO] No .geminiignore file found. Proceeding without custom ignore patterns.',
);
} else {
// Other error reading the file (e.g., permissions)
console.warn(