mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 14:53:19 -07:00
refactor(core): move diag.setLogger inside initializeTelemetry
This commit is contained in:
@@ -91,8 +91,6 @@ class DiagLoggerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
diag.setLogger(new DiagLoggerAdapter(), DiagLogLevel.INFO);
|
||||
|
||||
let sdk: NodeSDK | undefined;
|
||||
let spanProcessor: BatchSpanProcessor | undefined;
|
||||
let logRecordProcessor: BatchLogRecordProcessor | undefined;
|
||||
@@ -170,6 +168,8 @@ export async function initializeTelemetry(
|
||||
return;
|
||||
}
|
||||
|
||||
diag.setLogger(new DiagLoggerAdapter(), DiagLogLevel.INFO);
|
||||
|
||||
if (telemetryInitialized) {
|
||||
if (
|
||||
credentials?.client_email &&
|
||||
|
||||
Reference in New Issue
Block a user