We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1841a68 commit 04aade9Copy full SHA for 04aade9
src/handlers/http/cluster/mod.rs
@@ -736,7 +736,15 @@ pub async fn get_node_info<T: Metadata + DeserializeOwned>(
736
)
737
.await?
738
.iter()
739
- .filter_map(|x| serde_json::from_slice::<T>(x).ok())
+ .filter_map(|x| {
740
+ match serde_json::from_slice::<T>(x) {
741
+ Ok(val) => Some(val),
742
+ Err(e) => {
743
+ error!("Failed to parse node metadata: {:?}", e);
744
+ None
745
+ }
746
747
+ })
748
.collect();
749
750
Ok(metadata)
0 commit comments