From 1013c475245ceaa11eba462f7006651f1db76528 Mon Sep 17 00:00:00 2001 From: liangguodong Date: Thu, 5 Feb 2026 21:57:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=E5=AE=88?= =?UTF-8?q?=E6=8A=A4=E6=A8=A1=E5=BC=8F=E6=97=A5=E5=BF=97=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image_tag_derive.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/image_tag_derive.py b/image_tag_derive.py index 7859e6a..2ba6581 100644 --- a/image_tag_derive.py +++ b/image_tag_derive.py @@ -503,7 +503,7 @@ def run_daemon(batch_size=None, concurrency=None, interval=10): while running: round_count += 1 - logger.info(f"\n[第 {round_count} 轮] 检查待处理数据...") + logger.info(f"[{round_count}] 检查待处理数据...") try: results = batch_derive_tags( @@ -516,12 +516,12 @@ def run_daemon(batch_size=None, concurrency=None, interval=10): failed = len(results) - success total_success += success total_failed += failed - logger.info(f"[第 {round_count} 轮] 处理完成: 成功 {success}, 失败 {failed}") + logger.info(f"[{round_count}] 处理完成: 成功 {success}, 失败 {failed}") else: - logger.info(f"[第 {round_count} 轮] 没有待处理的数据") + logger.info(f"[{round_count}] 没有待处理的数据") except Exception as e: - logger.error(f"[第 {round_count} 轮] 处理异常: {e}") + logger.error(f"[{round_count}] 处理异常: {e}") if running: logger.info(f"等待 {interval} 秒后继续...") @@ -533,7 +533,7 @@ def run_daemon(batch_size=None, concurrency=None, interval=10): logger.info("=" * 60) logger.info("服务已停止") - logger.info(f"统计: 共运行 {round_count} 轮, 成功 {total_success} 条, 失败 {total_failed} 条") + logger.info(f"统计: 共运行 {round_count} 次, 成功 {total_success} 条, 失败 {total_failed} 条") logger.info("=" * 60)