]> granicus.if.org Git - pdns/commitdiff
auth: lower 'packet too short' loglevel
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 27 Feb 2018 14:19:56 +0000 (15:19 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 21 Mar 2018 13:46:21 +0000 (14:46 +0100)
It might be a pretty common error if there is a bad recursor or client,
leading to potential a logging overdose.

pdns/dnspacket.cc

index dc89f342bf1cffedf6fa8ce3a11e71124c94793d..f144687bcd07a85e37d7b711247d7273518b8d59 100644 (file)
@@ -436,7 +436,7 @@ int DNSPacket::noparse(const char *mesg, size_t length)
 {
   d_rawpacket.assign(mesg,length); 
   if(length < 12) { 
-    L << Logger::Warning << "Ignoring packet: too short ("<<length<<" < 12) from "
+    L << Logger::Debug << "Ignoring packet: too short ("<<length<<" < 12) from "
       << d_remote.toStringWithPort()<< endl;
     return -1;
   }