chore: migrate console.error in useGeminiStream (#12157)

Co-authored-by: Hriday Taneja <hridayt@google.com>
This commit is contained in:
hritan
2025-10-28 19:05:48 +00:00
committed by GitHub
parent 7e987113a2
commit e750da987d
2 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -35,6 +35,7 @@ import {
promptIdContext,
WRITE_FILE_TOOL_NAME,
tokenLimit,
debugLogger,
runInDevTraceSpan,
} from '@google/gemini-cli-core';
import { type Part, type PartListUnion, FinishReason } from '@google/genai';
@@ -162,7 +163,7 @@ export const useGeminiStream = (
completedToolCallsFromScheduler,
);
} catch (error) {
console.error(
debugLogger.warn(
`Error recording completed tool call information: ${error}`,
);
}
@@ -1004,7 +1005,7 @@ export const useGeminiStream = (
ToolConfirmationOutcome.ProceedOnce,
);
} catch (error) {
console.error(
debugLogger.warn(
`Failed to auto-approve tool call ${call.request.callId}:`,
error,
);