From 838bebe7ccf3615da155cfec833870914c8e5a90 Mon Sep 17 00:00:00 2001 From: DeepFal Date: Mon, 19 Oct 2026 15:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=A1=A5=E6=B5=8B=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=97=B6=E9=97=B4=E7=BB=9F=E4=B8=80=E4=B8=BA=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- graylog_ops/watch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graylog_ops/watch.py b/graylog_ops/watch.py index 6eeb270..2bb4a44 100644 --- a/graylog_ops/watch.py +++ b/graylog_ops/watch.py @@ -3238,8 +3238,9 @@ def run(ctx, args): print("检测缺口 %.1f 小时,超过自动补测上限 %d 小时,已跳过" % (gap / 3600.0, max_gap // 3600), flush=True) elif gap > threshold: - print("检测缺口 %.1f 小时,后台自动补测 %s → %s" - % (gap / 3600.0, last_dt.strftime("%m-%d %H:%M"), + print("检测缺口 %.1f 小时,后台自动补测(本地时间)%s → %s" + % (gap / 3600.0, + last_dt.astimezone().strftime("%m-%d %H:%M"), now_dt.astimezone().strftime("%m-%d %H:%M")), flush=True) threading.Thread(target=auto_backfill_worker,