]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3504b] Switched to bad_packet_logger
authorFrancis Dupont <fdupont@isc.org>
Wed, 3 Jun 2015 13:41:43 +0000 (15:41 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 3 Jun 2015 13:41:43 +0000 (15:41 +0200)
src/bin/dhcp4/dhcp4_srv.cc

index 4d2c81169ff1680c05430a566fdd9a23b4cac0ff..9e09e88124817bacf1fbcbd0140d457fa6b5e8c1 100644 (file)
@@ -1687,11 +1687,12 @@ Dhcpv4Srv::processRelease(Pkt4Ptr& release) {
 
     Subnet4Ptr subnet = selectSubnet(release);
     if (!subnet) {
-       // No subnet - release no sent from the proper location
-       LOG_DEBUG(lease_logger, DBG_DHCP4_DETAIL, DHCP4_RELEASE_FAIL_NO_SUBNET)
-           .arg(release->getLabel())
-           .arg(release->getCiaddr().toText());
-       return;
+        // No subnet - release no sent from the proper location
+        LOG_DEBUG(bad_packet_logger, DBG_DHCP4_DETAIL,
+                  DHCP4_RELEASE_FAIL_NO_SUBNET)
+            .arg(release->getLabel())
+            .arg(release->getCiaddr().toText());
+        return;
     }
 
     try {