From 7facf34564f7bd3326cd72ec501f1fa5b5fcc86c Mon Sep 17 00:00:00 2001 From: Ruben d'Arco Date: Sun, 3 Mar 2013 07:32:19 +0100 Subject: [PATCH] Add extra log output and message id to logline THe message id is useful when multiple updates come in, makes it unique. --- pdns/rfc2136handler.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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<