refactor: Replace console.error with structured logging and feedback (#12175)

This commit is contained in:
Gal Zahavi
2025-10-29 13:20:11 -07:00
committed by GitHub
parent 7dd0d5c1e4
commit 9dd629f5ca
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { spawnAsync } from '@google/gemini-cli-core';
import { debugLogger, spawnAsync } from '@google/gemini-cli-core';
/**
* Checks if the system clipboard contains an image (macOS only for now)
@@ -105,7 +105,7 @@ export async function saveClipboardImage(
// No format worked
return null;
} catch (error) {
console.error('Error saving clipboard image:', error);
debugLogger.warn('Error saving clipboard image:', error);
return null;
}
}