Skip to content

Commit

Permalink
enhance: [2.5] Remove frequent observe log (#39414)
Browse files Browse the repository at this point in the history
/kind improvement

pr: #39413

Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Jan 20, 2025
1 parent 6d5f174 commit 4464966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/querycoordv2/observers/collection_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ func (ob *CollectionObserver) observeLoadStatus(ctx context.Context) {
return true
})

log.Info("observe all collections done", zap.Int("num", observeTaskNum), zap.Duration("dur", time.Since(observeStart)))
if observeTaskNum > 0 {
log.Info("observe all collections done", zap.Int("num", observeTaskNum), zap.Duration("dur", time.Since(observeStart)))
}

// trigger check logic when loading collections/partitions
if loading {
Expand Down

0 comments on commit 4464966

Please sign in to comment.