]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Log, at debug level, DNS packet parse errors. 15390/head
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 3 Apr 2025 12:55:23 +0000 (14:55 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 23 Apr 2025 13:31:28 +0000 (15:31 +0200)
Fixes #14513

pdns/dnspacket.cc

index 6aaf755c8e44e73627b9b8f30366d3c05377c833..fc86f4f6be7eacd7bb4a64adf2959c7002ef5b06 100644 (file)
@@ -658,6 +658,7 @@ try
   return 0;
 }
 catch(std::exception& e) {
+  g_log << Logger::Debug << "Parse error in packet from " << getRemoteString() << ": " << e.what() << endl;
   return -1;
 }