udp load test: enable log crate logging

This commit is contained in:
Joakim Frostegård 2021-11-07 11:29:15 +01:00
parent 57896f4648
commit 6eaac536ba
2 changed files with 8 additions and 1 deletions

View file

@ -31,7 +31,11 @@ pub fn main() {
)
}
impl aquatic_cli_helpers::Config for Config {}
impl aquatic_cli_helpers::Config for Config {
fn get_log_level(&self) -> Option<aquatic_cli_helpers::LogLevel> {
Some(self.log_level)
}
}
fn run(config: Config) -> ::anyhow::Result<()> {
if config.handler.weight_announce + config.handler.weight_connect + config.handler.weight_scrape