mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
chore: migrate console.error in useGeminiStream (#12157)
Co-authored-by: Hriday Taneja <hridayt@google.com>
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user