Skip to content

Commit

Permalink
eve/reader: display filename on read permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Mar 25, 2024
1 parent 8600872 commit 56440a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eve/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ impl Processor {
}
match self.reader.next_record() {
Err(err) => {
error!("Failed to read event: {}", err);
error!(
"Failed to read event from {}: {}",
self.reader.filename.display(),
err
);
self.sleep_for(1000).await;
}
Ok(None) => {
Expand Down

0 comments on commit 56440a9

Please sign in to comment.