From d71b4a7351bbaca28723da26d2a27830351af70a Mon Sep 17 00:00:00 2001 From: fujie Date: Wed, 11 Feb 2026 13:49:08 +0800 Subject: [PATCH] chore: add logging to upload_chart_svg to debug silent failure --- scripts/openwebui_stats.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/openwebui_stats.py b/scripts/openwebui_stats.py index f6e36f0..f930654 100644 --- a/scripts/openwebui_stats.py +++ b/scripts/openwebui_stats.py @@ -1189,11 +1189,17 @@ class OpenWebUIStats: def upload_chart_svg(self): """生成 Vega-Lite SVG 并上传到 Gist (作为独立文件)""" + print("🚀 Starting chart SVG generation process...") + if not (self.gist_token and self.gist_id): + print("⚠️ Skipping chart upload: GIST_TOKEN or GIST_ID missing") return history = self.load_history() + print(f"📊 History records loaded: {len(history)}") + if len(history) < 3: + print("⚠️ Skipping chart upload: not enough history (<3 records)") return # 准备数据点