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

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-07-18 14:03:42 +00:00
committed by GitHub
parent b6653d4bb6
commit 4b440cf45d
@@ -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")
}
}()
}