Skip to content

Commit

Permalink
[pkg/stanza] Further reduce "no file found" log message severity
Browse files Browse the repository at this point in the history
Resolves #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.
  • Loading branch information
djaglowski authored Sep 25, 2023
1 parent 88c3225 commit c5b9722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/stanza/fileconsumer/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c5b9722

Please sign in to comment.