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) count := s.doDispatchPendingOutbox(wxWorkKFOutboxBatchSize)
totalCount += count totalCount += count
slog.Info("wxwork kf outbound dispatch loop", if count > 0 {
"batch_count", count, slog.Info("wxwork kf outbound dispatch loop",
"total_count", totalCount, "batch_count", count,
) "total_count", totalCount,
)
}
if count == 0 { if count == 0 {
break break