From: Ian Jackson Date: Sun, 25 Jul 2021 17:43:52 +0000 (+0100) Subject: Dump config to debug on startup X-Git-Tag: hippotat/1.0.0~448 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=94a268b8621a571123fc6444c4139dd340128b83;p=hippotat.git Dump config to debug on startup Signed-off-by: Ian Jackson --- diff --git a/src/bin/client.rs b/src/bin/client.rs index cf16b37..2c5d0ce 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -15,6 +15,8 @@ struct Client { async fn run_client(ic: InstanceConfig, hclient: Arc>) -> Result { + debug!("{}: config: {:?}", &ic, &ic); + throw!(anyhow!("arrgh")); } diff --git a/src/prelude.rs b/src/prelude.rs index 7c7d099..b7c1178 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -24,7 +24,7 @@ pub use hyper_tls::HttpsConnector; pub use ipnet::IpNet; pub use itertools::{iproduct, Itertools}; pub use lazy_regex::regex_is_match; -pub use log::{info, error}; +pub use log::{debug, info, error}; pub use structopt::StructOpt; pub use tokio::task; pub use tokio::time::Duration;