feat: improve logging in wxWorkKFOutboundService to only log when batches are dispatched
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user