From: Greg Burri Date: Tue, 13 Jul 2021 18:27:03 +0000 (+0200) Subject: Remove dbg! macros X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=0105f94329a15953945600612681aa82176d500f;p=gandi_dns_update.git Remove dbg! macros --- 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(()) }