Skip to content

Commit

Permalink
[chore][pkg/stanza] Reduce severity of log when no files found (#26526)
Browse files Browse the repository at this point in the history
Fixes #26525
  • Loading branch information
djaglowski authored Sep 8, 2023
1 parent 639d4da commit cfba665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stanza/fileconsumer/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (m *Manager) Start(persister operator.Persister) error {
}

if _, err := m.fileMatcher.MatchFiles(); err != nil {
m.Warnw("finding files", "error", err.Error())
m.Warnf("finding files: %v", err)
}

// Start polling goroutine
Expand Down 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.Errorf("error finding files: %s", err)
m.Warnf("finding files: %v", err)
}

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

0 comments on commit cfba665

Please sign in to comment.