]> granicus.if.org Git - pdns/commitdiff
Drop severity of 2 messages from error to warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Jun 2015 12:50:58 +0000 (14:50 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Jun 2015 12:50:58 +0000 (14:50 +0200)
We see these errors a few times a day in our environment
and afaict they are harmless.

pdns/tcpreceiver.cc

index 4ccf309c61b776fd2f5059deb58a89be43a70c39..31ce721cd6042a459a8bdb77239ff040a1487829 100644 (file)
@@ -275,7 +275,7 @@ void *TCPNameserver::doConnection(void *data)
       ComboAddress remote;
       socklen_t remotelen=sizeof(remote);
       if(getpeername(fd, (struct sockaddr *)&remote, &remotelen) < 0) {
-        L<<Logger::Error<<"Received question from socket which had no remote address, dropping ("<<stringerror()<<")"<<endl;
+        L<<Logger::Warning<<"Received question from socket which had no remote address, dropping ("<<stringerror()<<")"<<endl;
         break;
       }
 
@@ -293,7 +293,7 @@ void *TCPNameserver::doConnection(void *data)
       // do not remove this check as it will catch if someone
       // decreases the mesg buffer size for some reason. 
       if(pktlen > mesgsize) {
-        L<<Logger::Error<<"Received an overly large question from "<<remote.toString()<<", dropping"<<endl;
+        L<<Logger::Warning<<"Received an overly large question from "<<remote.toString()<<", dropping"<<endl;
         break;
       }