From c5b97222f6d970741638cbf992e1aea51876f1b2 Mon Sep 17 00:00:00 2001 From: Daniel Jaglowski Date: Mon, 25 Sep 2023 08:08:38 -0600 Subject: [PATCH] [pkg/stanza] Further reduce "no file found" log message severity Resolves https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/27094 We still log this message if no files are found when the collector starts. However, the recurring message has proven to be a undesirable in many cases. --- pkg/stanza/fileconsumer/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/file.go b/pkg/stanza/fileconsumer/file.go index 3c7f87062734..4faffbb48399 100644 --- a/pkg/stanza/fileconsumer/file.go +++ b/pkg/stanza/fileconsumer/file.go @@ -115,7 +115,7 @@ func (m *Manager) poll(ctx context.Context) { // Get the list of paths on disk matches, err := m.fileMatcher.MatchFiles() if err != nil { - m.Infof("finding files: %v", err) + m.Debugf("finding files: %v", err) } for len(matches) > m.maxBatchFiles {