From 816480d09132fedbd4d3248b69937d2a80af3e88 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Fri, 24 May 2024 23:54:43 +0200 Subject: [PATCH] main: removed debug prints Signed-off-by: Frank Villaro-Dixon --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index a0de213..2bcf9a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,6 @@ async fn put_post( qs: web::Query, body: web::Json, ) -> impl Responder { - println!("Body: {:?}", body); let authenticated_client = config::try_authenticate_client(&shared.cfg.clients, &qs.token); if authenticated_client.is_none() { @@ -59,13 +58,10 @@ async fn put_post( client.metrics.join(", ") )); } - println!("Client: {:?}", client); let post_url = format!("{}put", shared.cfg.config.opentsdb.url); let otsdb_body = serde_json::to_string(&body).unwrap(); - println!("POST URL: {}", post_url); - let response = shared .web_client .post(post_url) @@ -91,7 +87,7 @@ async fn main() -> std::io::Result<()> { let cfg_file = env::var("CONFIG_FILE").unwrap_or(CONFIG_FILE.to_string()); let cfg = config::load_config_file(&cfg_file); - println!("Config: {:?}", cfg); + println!("Loaded config: {:#?}", cfg); let server_port = cfg.config.server.port.clone(); let web_client = Client::new();