]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Reword zone xfr log message to remove ordinal number naming errors. 9910/head
authorCarlos <nzlosh@yahoo.com>
Tue, 5 Jan 2021 10:29:27 +0000 (11:29 +0100)
committerCarlos <nzlosh@yahoo.com>
Tue, 5 Jan 2021 10:29:27 +0000 (11:29 +0100)
pdns/slavecommunicator.cc

index b3f47248f3425dee40834fd38a3de73d7b6e17ba..eb6ece88230627e29876fb23dfdf429ee765404b 100644 (file)
@@ -653,7 +653,7 @@ void CommunicatorClass::suck(const DNSName &domain, const ComboAddress& remote,
         newCount = d_failedSlaveRefresh[domain].first + 1;
       time_t nextCheck = now + std::min(newCount * d_tickinterval, (uint64_t)::arg().asNum("default-ttl"));
       d_failedSlaveRefresh[domain] = {newCount, nextCheck};
-      g_log<<Logger::Warning<<logPrefix<<"unable to xfr zone (ResolverException): "<<re.reason<<" (This was the "<<(newCount == 1 ? "first" : std::to_string(newCount) + "th")<<" time. Excluding zone from slave-checks until "<<nextCheck<<")"<<endl;
+      g_log<<Logger::Warning<<logPrefix<<"unable to xfr zone (ResolverException): "<<re.reason<<" (This was attempt number "<<newCount<<". Excluding zone from slave-checks until "<<nextCheck<<")"<<endl;
     }
     if(di.backend && transaction) {
       g_log<<Logger::Info<<"aborting possible open transaction"<<endl;