]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1915] Fixed drop log in clent_handler.cc
authorTomek Mrugalski <tomek@isc.org>
Fri, 25 Jun 2021 15:35:57 +0000 (17:35 +0200)
committerRazvan Becheriu <razvan@isc.org>
Fri, 25 Jun 2021 15:57:55 +0000 (18:57 +0300)
src/bin/dhcp4/client_handler.cc

index f116df3ad6bca7f8605010de7350f5962f9a5479..4bf80d3abd6ebfd48f8c7ab1ce992ba7c105ac39 100644 (file)
@@ -14,6 +14,7 @@
 
 using namespace std;
 using namespace isc::util;
+using namespace isc::log;
 
 namespace isc {
 namespace dhcp {
@@ -236,7 +237,7 @@ ClientHandler::tryLock(Pkt4Ptr query, ContinuationPtr cont) {
             if (next_query_id) {
                 // Logging a warning as it is supposed to be a rare event
                 // with well behaving clients...
-                LOG_WARN(bad_packet4_logger, DHCP4_PACKET_DROP_0011)
+                LOG_DEBUG(bad_packet4_logger, DBGLVL_PKT_HANDLING, DHCP4_PACKET_DROP_0011)
                     .arg(next_query_id->toText())
                     .arg(this_thread::get_id())
                     .arg(holder_id->query_->toText())
@@ -247,7 +248,7 @@ ClientHandler::tryLock(Pkt4Ptr query, ContinuationPtr cont) {
         } else {
             // Logging a warning as it is supposed to be a rare event
             // with well behaving clients...
-            LOG_WARN(bad_packet4_logger, DHCP4_PACKET_DROP_0011)
+            LOG_DEBUG(bad_packet4_logger, DBGLVL_PKT_HANDLING, DHCP4_PACKET_DROP_0011)
                 .arg(query->toText())
                 .arg(this_thread::get_id())
                 .arg(holder_id->query_->toText())