Log once if we can't determine our IP. Also log if we are unable to look up the dyndn...
[bpdyndnsd] / src / updater.cpp
index 028a152..e2d26a0 100644 (file)
@@ -226,7 +226,7 @@ void Updater::update_services(bool changed_to_online) const
     string ip_host = IPAddrHelp->get_actual_ip(Conf->get_webcheck_enabled());
     if ( ip_host.empty() )
     {
-        Log->print_no_wan_ip();
+        Log->print_no_wan_ip(changed_to_online);
         return;
     }
 
@@ -250,7 +250,10 @@ void Updater::update_services(bool changed_to_online) const
 
         // Test if the DNS-Record could not be found.
         if ( ip_dns_recheck.empty() )
+        {
+            Log->print_dns_lookup_failed(changed_to_online, hostname);
             continue;
+        }
 
         // Test if the actual DNS-Record differs from the host's IP.
         if (ip_host == ip_dns_recheck )