]> granicus.if.org Git - pdns/commitdiff
improve slave NOTIFY logging
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 12 Apr 2018 17:58:02 +0000 (19:58 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 12 Apr 2018 17:58:02 +0000 (19:58 +0200)
pdns/packethandler.cc

index 3f7acd272615cb02f5006a526b962f60c5142e4c..e418b1ca3a41c2a070beb0c915328ef79e24613a 100644 (file)
@@ -802,6 +802,8 @@ int PacketHandler::processNotify(DNSPacket *p)
      if master is higher -> do stuff
   */
 
+  g_log<<Logger::Debug<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<endl;
+
   if(!::arg().mustDo("slave") && s_forwardNotify.empty()) {
     g_log<<Logger::Warning<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<" but slave support is disabled in the configuration"<<endl;
     return RCode::Refused;
@@ -868,8 +870,10 @@ int PacketHandler::processNotify(DNSPacket *p)
     }
   }
 
-  if(::arg().mustDo("slave"))
+  if(::arg().mustDo("slave")) {
+    g_log<<Logger::Debug<<"Queueing slave check for "<<p->qdomain<<endl;
     Communicator.addSlaveCheckRequest(di, p->d_remote);
+  }
   return 0;
 }