···2424- Logs with level `tracing_level::TRACE` are compiled out of release builds
2525- Data integrity of keys have been greatly improved
2626- Unknown SSH keys will be immediately rejected unless `--ssh-accept-host` is passed.
2727+- Logging was improved.
27282829### Documented
2930
···3344use std::fmt::Display;
5566-use tracing::{info, instrument, warn};
66+use tracing::{Level, event, instrument};
7788use crate::{
99 HiveLibError,
···2727 #[instrument(skip_all, name = "ping")]
2828 async fn execute(&self, ctx: &mut Context<'_>) -> Result<(), HiveLibError> {
2929 loop {
3030- info!("Attempting host {}", ctx.node.target.get_preferred_host()?);
3030+ event!(Level::INFO, status = "attempting", host = ctx.node.target.get_preferred_host()?.to_string());
31313232 if ctx
3333 .node
···3535 .await
3636 .is_ok()
3737 {
3838+ event!(Level::INFO, status = "success", host = ctx.node.target.get_preferred_host()?.to_string());
3839 return Ok(());
3940 }
40414141- warn!(
4242- "Failed to ping host {}",
4343- // ? will take us out if we ran out of hosts
4444- ctx.node.target.get_preferred_host()?
4545- );
4242+ // ? will take us out if we ran out of hosts
4343+ event!(Level::WARN, status = "failed to ping", host = ctx.node.target.get_preferred_host()?.to_string());
4644 ctx.node.target.host_failed();
4745 }
4846 }