chore: migrate console.error to debugLogger in useSlashCompletion (#12218)

Co-authored-by: Hriday Taneja <hridayt@google.com>
This commit is contained in:
Hriday
2025-10-30 03:59:15 +00:00
committed by GitHub
parent 77df6d48e2
commit 167b6ff8a1

View File

@@ -33,9 +33,9 @@ interface FzfCommandCacheEntry {
function logErrorSafely(error: unknown, context: string): void {
if (error instanceof Error) {
// Log full error details securely for debugging
console.error(`[${context}]`, error);
debugLogger.warn(`[${context}]`, error);
} else {
console.error(`[${context}] Non-error thrown:`, error);
debugLogger.warn(`[${context}] Non-error thrown:`, error);
}
}