Added filtering and attribute flags, improved bes_wifi by adding ssids
and tags to the equasion
This commit is contained in:
@@ -50,7 +50,18 @@ impl MtCommander {
|
||||
}))
|
||||
.await;
|
||||
|
||||
let res_map: HashMap<_, _> = results.into_iter().collect();
|
||||
let res_map: HashMap<_, _> = results
|
||||
.into_iter()
|
||||
.filter_map(|(h, res)| {
|
||||
match &res {
|
||||
Ok(_) => Some((h, res)),
|
||||
Err(e) => {
|
||||
log::error!("(Almost Fatal) Error running command: {e}");
|
||||
None
|
||||
}
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
Ok(res_map)
|
||||
}
|
||||
}
|
||||
@@ -197,7 +208,7 @@ impl MtCommanderInternal {
|
||||
other => println!("{other:?}"),
|
||||
}
|
||||
}
|
||||
log::info!("({addr}) Command finished, read {size} bytes");
|
||||
log::info!("({addr}) Command `{command}` finished, read {size} bytes");
|
||||
Ok(res)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user