diff --git a/internal/agentcfg/elasticsearch.go b/internal/agentcfg/elasticsearch.go index dcc371ef947..518646797ed 100644 --- a/internal/agentcfg/elasticsearch.go +++ b/internal/agentcfg/elasticsearch.go @@ -262,7 +262,7 @@ func (f *ElasticsearchFetcher) clearScroll(ctx context.Context, scrollID string) } if resp.IsError() { - f.logger.Warn("clearscroll request returned error: %s", resp.Status()) + f.logger.Warnf("clearscroll request returned error: %s", resp.Status()) } resp.Body.Close() diff --git a/internal/sourcemap/metadata_fetcher.go b/internal/sourcemap/metadata_fetcher.go index afb6d561406..7b00765f93b 100644 --- a/internal/sourcemap/metadata_fetcher.go +++ b/internal/sourcemap/metadata_fetcher.go @@ -196,7 +196,7 @@ func (s *MetadataESFetcher) clearScroll(ctx context.Context, scrollID string) { } if resp.IsError() { - s.logger.Warn("clearscroll request returned error: %s", resp.Status()) + s.logger.Warnf("clearscroll request returned error: %s", resp.Status()) } resp.Body.Close()