mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
chore: migrate console.error to debugLogger in useSlashCompletion (#12218)
Co-authored-by: Hriday Taneja <hridayt@google.com>
This commit is contained in:
@@ -33,9 +33,9 @@ interface FzfCommandCacheEntry {
|
|||||||
function logErrorSafely(error: unknown, context: string): void {
|
function logErrorSafely(error: unknown, context: string): void {
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
// Log full error details securely for debugging
|
// Log full error details securely for debugging
|
||||||
console.error(`[${context}]`, error);
|
debugLogger.warn(`[${context}]`, error);
|
||||||
} else {
|
} else {
|
||||||
console.error(`[${context}] Non-error thrown:`, error);
|
debugLogger.warn(`[${context}] Non-error thrown:`, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user