From ddbddb92b330f1bd457799b3d8a0cf920e3f11d4 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Sat, 8 Feb 2025 19:12:36 +0100 Subject: [PATCH] feat(log): refine logging --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d1375e2..2a88c78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ mod public_ip; use std::{env, thread::sleep, time::Duration}; use dotenv::dotenv; -use log::{error, info}; +use log::{error, info, debug}; use public_ip::get_public_ip_address; use reqwest::header::{AUTHORIZATION, CONTENT_TYPE}; use serde_json::Value; @@ -55,7 +55,7 @@ fn update_and_get_cache( let current_ip_address = get_public_ip_address()?; if result.ip_address == current_ip_address { - info!("Not updating IP Address"); + debug!("Not updating IP Address"); } else { update_ip_address(token, zone_id, ¤t_ip_address, domain, &result.id)?; result.ip_address = current_ip_address;