Remove timeout info from logs when shadow request to search succeeds (#108324)

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
pull/108328/head
maicon 2 days ago committed by GitHub
parent b6653d4bb6
commit 4b440cf45d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/storage/unified/resource/search_client.go

@ -76,7 +76,7 @@ func (s *searchWrapper) GetStats(ctx context.Context, in *resourcepb.ResourceSta
if bgErr != nil {
s.logger.Error("Background GetStats call to unified failed", "error", bgErr, "timeout", backgroundRequestTimeout)
} else {
s.logger.Debug("Background GetStats call to unified succeeded", "timeout", backgroundRequestTimeout)
s.logger.Debug("Background GetStats call to unified succeeded")
}
}()
}
@ -109,7 +109,7 @@ func (s *searchWrapper) Search(ctx context.Context, in *resourcepb.ResourceSearc
if bgErr != nil {
s.logger.Error("Background Search call to unified failed", "error", bgErr, "timeout", backgroundRequestTimeout)
} else {
s.logger.Debug("Background Search call to unified succeeded", "timeout", backgroundRequestTimeout)
s.logger.Debug("Background Search call to unified succeeded")
}
}()
}

Loading…
Cancel
Save