From: Ruben d'Arco Date: Sun, 3 Mar 2013 06:32:19 +0000 (+0100) Subject: Add extra log output and message id to logline X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7facf34564f7bd3326cd72ec501f1fa5b5fcc86c;p=thirdparty%2Fpdns.git Add extra log output and message id to logline THe message id is useful when multiple updates come in, makes it unique. --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index d66f0c7f04..2aa8139146 100755 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -9,6 +9,7 @@ #include "arguments.hh" #include "resolver.hh" #include "dns_random.hh" +#include "backends/gsql/ssql.hh" extern PacketCache PC; @@ -115,6 +116,7 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord * changedRecords++; di->backend->replaceRRSet(di->id, oldRec->qname, oldRec->qtype, rrset); *updatedSerial = true; + L<backend->replaceRRSet(di->id, rrLabel, rrType, rrset); + L<backend->replaceRRSet(di->id, rrLabel, rrType, rrset); + L<backend->replaceRRSet(di->id, rrLabel, rrType, rrset); + L<getRemote() + " for " + p->qdomain + ": "; + string msgPrefix="UPDATE (" + itoa(p->d.id) + ") from " + p->getRemote() + " for " + p->qdomain + ": "; L< 0 && !updatedSerial) increaseSerial(msgPrefix, &di, haveNSEC3, narrow, &ns3pr); + } catch (AhuException &e) { L<