]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: show QType by name in log message 11090/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Dec 2021 21:34:41 +0000 (22:34 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Dec 2021 21:34:41 +0000 (22:34 +0100)
pdns/packethandler.cc

index d59f7881dd65a4e7f4ea6063169099a5a140c6eb..84b5d9ea21c8cca18c5ae5c4468d00811456307e 100644 (file)
@@ -1715,9 +1715,9 @@ std::unique_ptr<DNSPacket> PacketHandler::doQuestion(DNSPacket& p)
         goto sendit;
       // check whether this could be fixed easily
       // if (*(rr.dr.d_name.rbegin()) == '.') {
-      //      g_log<<Logger::Error<<"Should not get here ("<<p.qdomain<<"|"<<p.qtype.getCode()<<"): you have a trailing dot, this could be the problem (or run pdnsutil rectify-zone " <<d_sd.qname<<")"<<endl;
+      //      g_log<<Logger::Error<<"Should not get here ("<<p.qdomain<<"|"<<p.qtype.toString()<<"): you have a trailing dot, this could be the problem (or run pdnsutil rectify-zone " <<d_sd.qname<<")"<<endl;
       // } else {
-           g_log<<Logger::Error<<"Should not get here ("<<p.qdomain<<"|"<<p.qtype.getCode()<<"): please run pdnsutil rectify-zone "<<d_sd.qname<<endl;
+           g_log<<Logger::Error<<"Should not get here ("<<p.qdomain<<"|"<<p.qtype.toString()<<"): please run pdnsutil rectify-zone "<<d_sd.qname<<endl;
       // }
     }
     else {