mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-22 12:01:39 -07:00
Disallow unnecessary awaits. (#15172)
This commit is contained in:
committed by
GitHub
parent
3e9a0a7628
commit
7f2d33458a
@@ -300,7 +300,7 @@ export async function initializeTelemetry(
|
||||
});
|
||||
|
||||
try {
|
||||
await sdk.start();
|
||||
sdk.start();
|
||||
if (config.getDebugMode()) {
|
||||
debugLogger.log('OpenTelemetry SDK started successfully.');
|
||||
}
|
||||
@@ -355,7 +355,7 @@ export async function shutdownTelemetry(
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await ClearcutLogger.getInstance()?.shutdown();
|
||||
ClearcutLogger.getInstance()?.shutdown();
|
||||
await sdk.shutdown();
|
||||
if (config.getDebugMode() && fromProcessExit) {
|
||||
debugLogger.log('OpenTelemetry SDK shut down successfully.');
|
||||
|
||||
Reference in New Issue
Block a user