From c53f40d205c2e1dcbd801e78234b0a480b8e2ba9 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 21 Jul 2024 22:53:01 -0400 Subject: [PATCH] freemyip: Improve log messages --- ddclient.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ddclient.in b/ddclient.in index d10db43..21d1ea5 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6416,12 +6416,11 @@ sub nic_freemyip_update { debug("\nnic_freemyip_update -------------------"); for my $h (@_) { my $ip = delete $config{$h}{'wantip'}; - info("setting IP address to %s for %s", $ip, $h); - verbose("UPDATE:", "updating %s", $h); + info("$h: setting IP address to $ip"); my $url = "https://$config{$h}{'server'}/update?token=$config{$h}{'password'}&domain=$h"; my $reply = geturl(proxy => opt('proxy'), url => $url); if (!defined($reply) || !$reply) { - failed("updating %s: Could not connect to %s.", $h, $config{$h}{'server'}); + failed("$h: Request to $config{$h}{'server'} failed"); next; } next if !header_ok($h, $reply); @@ -6431,10 +6430,10 @@ sub nic_freemyip_update { $config{$h}{'ip'} = $ip; $config{$h}{'mtime'} = $now; $config{$h}{'status'} = 'good'; - success("updating %s: good: IP address set to %s", $h, $ip); + success("$h: good: IP address set to $ip"); } else { $config{$h}{'status'} = 'failed'; - failed("updating %s: Server said: '%s'", $h, $returned); + failed("$h: Server said: $returned"); } } }