Skip to content

Commit 62fa77a

Browse files
committed
Add a error verification when failed list error is from context canceled
Signed-off-by: Vitor Savian <[email protected]>
1 parent 774b2e8 commit 62fa77a

File tree

1 file changed

+3
-1
lines changed
  • pkg/logstructured/sqllog

1 file changed

+3
-1
lines changed

pkg/logstructured/sqllog/sql.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ func (s *SQLLog) poll(result chan interface{}, pollStart int64) {
432432

433433
rows, err := s.d.After(s.ctx, "%", s.currentRev, pollBatchSize)
434434
if err != nil {
435-
logrus.Errorf("fail to list latest changes: %v", err)
435+
if !errors.Is(err, context.Canceled) {
436+
logrus.Errorf("fail to list latest changes: %v", err)
437+
}
436438
continue
437439
}
438440

0 commit comments

Comments
 (0)