diff --git a/src/elasticnow/elasticnow.rs b/src/elasticnow/elasticnow.rs index 1f5145e..fcd5ae3 100644 --- a/src/elasticnow/elasticnow.rs +++ b/src/elasticnow/elasticnow.rs @@ -1,5 +1,4 @@ use reqwest::Client; -use tracing::{debug, Instrument}; use serde::{Deserialize, Serialize}; @@ -84,7 +83,7 @@ impl ElasticNow { path: &str, body: serde_json::Value, ) -> Result { - debug!("Getting {}", path); + tracing::debug!("Getting {}", path); self.client .post(self.instance.to_owned() + path) .json(&body) diff --git a/src/main.rs b/src/main.rs index 13d3a5c..61f40b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,7 +172,7 @@ async fn run_timetrack( "https://{}.service-now.com/task.do?sys_id={}", &config.sn_instance, sys_id )); - tracing::info!("Link to ticket: {}", ticket_url); + println!("Link to ticket: {}", ticket_url); } std::process::exit(0); } @@ -308,7 +308,7 @@ async fn run_stdchg(search: String, bin: Option, template_id: Option String { Ok(listener) => { server = Some(Server::from_listener(listener, None).unwrap()); chosen_port = port; - println!("Server running on port {}", port); + tracing::info!("Server running on port {}", port); break; } Err(_) => { - println!("Port {} is in use, trying next port...", port); + tracing::info!("Port {} is in use, trying next port...", port); } } }