Skip to content

Commit

Permalink
fix: Suppress error log on es::Error::Eof (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Aug 8, 2024
1 parent 963a75c commit 20d0891
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions launchdarkly-server-sdk/src/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,12 @@ impl DataSource for StreamingDataSource {
}
},
Some(Err(e)) => {
error!("error on event stream: {:?}", e);

match e {
es::Error::Eof => {
continue;
}
_ => {
debug!("unhandled error; break");
error!("unhandled error on event stream: {:?}", e);
break;
}
}
Expand Down

0 comments on commit 20d0891

Please sign in to comment.