feat: improve logging in wxWorkKFOutboundService to only log when batches are dispatched

This commit is contained in:
mlogclub
2026-06-07 19:42:54 +08:00
parent d2d82b615b
commit 9aa6490e8d
@@ -49,10 +49,12 @@ func (s *wxWorkKFOutboundService) DispatchPendingOutbox() int {
count := s.doDispatchPendingOutbox(wxWorkKFOutboxBatchSize)
totalCount += count
slog.Info("wxwork kf outbound dispatch loop",
"batch_count", count,
"total_count", totalCount,
)
if count > 0 {
slog.Info("wxwork kf outbound dispatch loop",
"batch_count", count,
"total_count", totalCount,
)
}
if count == 0 {
break