]> granicus.if.org Git - pdns/commitdiff
Fix log levels
authorAki Tuomi <cmouse@cmouse.fi>
Tue, 11 Aug 2015 06:38:33 +0000 (09:38 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Wed, 20 Jan 2016 11:16:59 +0000 (13:16 +0200)
pdns/packethandler.cc

index 49da72777967a9bdf8c84a8c149a7f9ec83c505f..ba4e774f8cbf5b208eb9ebada95239a1260d5d30 100644 (file)
@@ -853,7 +853,7 @@ int PacketHandler::processNotify(DNSPacket *p)
     if (p->d_havetsig && p->getTSIGKeyname().empty() == false) {
         L<<Logger::Notice<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<", allowed by TSIG key '"<<p->getTSIGKeyname()<<"'"<<endl;
     } else {
-      L<<Logger::Notice<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<" but remote is not permitted by TSIG or allow-notify-from"<<endl;
+      L<<Logger::Error<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<" but remote is not permitted by TSIG or allow-notify-from"<<endl;
       return RCode::Refused;
     }
   }
@@ -869,7 +869,7 @@ int PacketHandler::processNotify(DNSPacket *p)
   meta.clear();
   if (B.getDomainMetadata(p->qdomain,"AXFR-MASTER-TSIG",meta) && meta.size() > 0) {
     if (!p->d_havetsig || meta[0] != p->getTSIGKeyname().toStringNoDot()) {
-      L<<Logger::Notice<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<": expected TSIG key '"<<meta[0]<<", got '"<<p->getTSIGKeyname()<<"'"<<endl;
+      L<<Logger::Error<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<": expected TSIG key '"<<meta[0]<<", got '"<<p->getTSIGKeyname()<<"'"<<endl;
       return RCode::Refused;
     }
   }