From 0105f94329a15953945600612681aa82176d500f Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Tue, 13 Jul 2021 20:27:03 +0200 Subject: [PATCH] Remove dbg! macros --- src/main.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 33f1981..280b718 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,11 +88,9 @@ fn main() -> Result<()> { fn check_and_update_dns(api_key: &str, fqdn: &str, domains: &Vec, ttl: i32) -> Result<()> { let real_ip = get_real_ip()?; - dbg!(&real_ip); for domain in domains { let current_ip = get_current_record_ip(api_key, domain, fqdn)?; - dbg!(domain, current_ip); if real_ip != current_ip { println!("IP addresses don't match for domain {}: real = {}, dns = {}. Renewing DNS...", domain, real_ip, current_ip); @@ -177,7 +175,5 @@ fn update_record_ip(api_key: &str, name: &str, fqdn: &str, ip: Ipv4Addr, ttl: i3 let json_value = request_livedns_gandi(api_key, &format!("domains/{}/records/{}/A", fqdn, name), Method::Put(json_body.to_string()))?; - dbg!(json_value); - Ok(()) } -- 2.45.2