From 02b9bc6e12317272205f65eec17afcd65ca5a5a1 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Sat, 14 Nov 2026 17:08:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(logging):=20=E6=96=B0=E5=A2=9E=E5=A2=9E?= =?UTF-8?q?=E9=87=8F=E6=9B=B4=E6=96=B0=E6=9A=82=E5=AD=98=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=BA=8B=E4=BB=B6=20update.delta.cleanup=5Ff?= =?UTF-8?q?ailed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 桌面客户端用补丁重建的新版本放在临时目录,安装后、版本被替换或窗口关闭时删除; 删除失败按日志规则必须记录,目录里没有合适的事件。WARN,字段 error。 --- rust/crates/diagnostics/src/catalog_generated.rs | 12 ++++++++++++ rust/logging/events/update.json | 15 +++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/rust/crates/diagnostics/src/catalog_generated.rs b/rust/crates/diagnostics/src/catalog_generated.rs index 1e61272..6608226 100644 --- a/rust/crates/diagnostics/src/catalog_generated.rs +++ b/rust/crates/diagnostics/src/catalog_generated.rs @@ -2344,6 +2344,18 @@ pub static EVENTS: &[EventMetadata] = &[ rate: 60, owner: "Lithe", }, + EventMetadata { + id: "update.delta.cleanup_failed", + channel: "update", + level: LogLevel::Warn, + message: "Staged delta update payload cleanup failed", + fields: &[ + FieldMetadata { name: "error", field_type: FieldType::Error, required: true, description: "Filesystem error raised while removing the application a delta update rebuilt in the temporary directory", reason: None }, + ], + span: None, + rate: 60, + owner: "Lithe", + }, EventMetadata { id: "update.delta.fallback_selected", channel: "update", diff --git a/rust/logging/events/update.json b/rust/logging/events/update.json index 7f4e751..43edc5a 100644 --- a/rust/logging/events/update.json +++ b/rust/logging/events/update.json @@ -2,6 +2,21 @@ "version": 1, "root": "update", "events": [ + { + "id": "update.delta.cleanup_failed", + "channel": "update", + "level": "warn", + "message": "Staged delta update payload cleanup failed", + "fields": { + "error": { + "type": "error", + "required": true, + "description": "Filesystem error raised while removing the application a delta update rebuilt in the temporary directory" + } + }, + "rate": 60, + "owner": "Lithe" + }, { "id": "update.delta.fallback_selected", "channel": "update",