From d62495c41e8c261bede1cce3e07bf98d5666d6f3 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 22 Jul 2024 22:33:11 -0400 Subject: [PATCH] ddns.fm: Improve log messages --- ddclient.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ddclient.in b/ddclient.in index 62015a2..665c9a2 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6473,21 +6473,20 @@ sub nic_ddnsfm_update { # - IPv6 updates do not affect the IPv4 A record (if present). for my $ipv ('4', '6') { my $ip = delete $config{$h}{"wantipv$ipv"} or next; - info("setting IPv$ipv address to $ip for $h"); - verbose("UPDATE:", "updating %s", $h); + info("$h: setting IPv$ipv address to $ip"); my $reply = geturl( proxy => opt('proxy'), url => "$config{$h}{server}/update?key=$config{$h}{password}&domain=$h&myip=$ip", ); if (!$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); $config{$h}{"ipv$ipv"} = $ip; $config{$h}{'mtime'} = $now; $config{$h}{"status-ipv$ipv"} = 'good'; - success("updating $h: good: IPv$ipv address set to $ip"); + success("$h: IPv$ipv address set to $ip"); } } }