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); const patterns = loadGeminiIgnorePatterns(tempDir);
expect(patterns).toEqual([]); expect(patterns).toEqual([]);
expect(consoleLogSpy).toHaveBeenCalledWith( expect(consoleLogSpy).not.toHaveBeenCalled();
'[INFO] No .geminiignore file found. Proceeding without custom ignore patterns.',
);
expect(mockedFsReadFileSync).toHaveBeenCalledWith(ignoreFilePath, 'utf-8'); expect(mockedFsReadFileSync).toHaveBeenCalledWith(ignoreFilePath, 'utf-8');
}); });

View File

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