From 0a9ee106e4a01be7ea7c805390125a4da8445e41 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 29 Aug 2024 13:01:02 -0400 Subject: [PATCH] tests: Debug log when in protocol `update` callback --- t/update_nics.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/update_nics.pl b/t/update_nics.pl index 9807703..60ef231 100644 --- a/t/update_nics.pl +++ b/t/update_nics.pl @@ -49,12 +49,16 @@ local %ddclient::protocols = ( # `ipv6`, `status-ipv4`, and `status-ipv6`.) It always succeeds. legacy => { update => sub { + ddclient::debug('in update'); for my $h (@_) { + local $ddclient::_l = ddclient::pushlogctx($h); + ddclient::debug('updating host'); push(@updates, [@_]); $ddclient::config{$h}{status} = 'good'; $ddclient::config{$h}{ip} = delete($ddclient::config{$h}{wantip}); $ddclient::config{$h}{mtime} = $ddclient::now; } + ddclient::debug('returning from update'); }, variables => { %{$ddclient::variables{'protocol-common-defaults'}},