Reduce noisy logging for missing .geminiignore file. (#793)
This commit is contained in:
parent
368e9ab4d8
commit
c80ff146d2
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue