fix(patch): cherry-pick cce2457 to release/v0.8.1-pr-10856 to patch version v0.8.1 and create version 0.8.2 (#10859)

Co-authored-by: owenofbrien <86964623+owenofbrien@users.noreply.github.com>
This commit is contained in:
gemini-cli-robot
2025-10-09 16:57:02 -07:00
committed by GitHub
parent a1cc5ac2b3
commit 9b2d4c6180

View File

@@ -902,7 +902,9 @@ export class ClearcutLogger {
this.enqueueLogEvent(
this.createLogEvent(EventNames.EXTENSION_INSTALL, data),
);
this.flushIfNeeded();
this.flushToClearcut().catch((error) => {
console.debug('Error flushing to Clearcut:', error);
});
}
logExtensionUninstallEvent(event: ExtensionUninstallEvent): void {
@@ -920,7 +922,9 @@ export class ClearcutLogger {
this.enqueueLogEvent(
this.createLogEvent(EventNames.EXTENSION_UNINSTALL, data),
);
this.flushIfNeeded();
this.flushToClearcut().catch((error) => {
console.debug('Error flushing to Clearcut:', error);
});
}
logToolOutputTruncatedEvent(event: ToolOutputTruncatedEvent): void {
@@ -1003,7 +1007,9 @@ export class ClearcutLogger {
this.enqueueLogEvent(
this.createLogEvent(EventNames.EXTENSION_ENABLE, data),
);
this.flushIfNeeded();
this.flushToClearcut().catch((error) => {
console.debug('Error flushing to Clearcut:', error);
});
}
logModelSlashCommandEvent(event: ModelSlashCommandEvent): void {
@@ -1036,7 +1042,9 @@ export class ClearcutLogger {
this.enqueueLogEvent(
this.createLogEvent(EventNames.EXTENSION_DISABLE, data),
);
this.flushIfNeeded();
this.flushToClearcut().catch((error) => {
console.debug('Error flushing to Clearcut:', error);
});
}
/**