Skip to content

Commit

Permalink
[chore][pkg/stanza] Decrease log level when reporting no files found (o…
Browse files Browse the repository at this point in the history
…pen-telemetry#26678)

When the component starts, if it finds no matching files, it reports a
warning level message.

However, after the initial check, this may be too noisy because each
poll result may report the same thing. Instead, report subsequent "no
files found" as info level.
  • Loading branch information
djaglowski authored Sep 13, 2023
1 parent 55eb723 commit d313210
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.Warnf("finding files: %v", err)
m.Infof("finding files: %v", err)
}

for len(matches) > m.maxBatchFiles {
Expand Down

0 comments on commit d313210

Please sign in to comment.