]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2820] add tid in some leases logs
authorPiotrek Zadroga <piotrek@isc.org>
Wed, 24 Apr 2024 18:06:32 +0000 (20:06 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Fri, 26 Apr 2024 12:42:46 +0000 (14:42 +0200)
src/bin/dhcp4/dhcp4_messages.cc
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/dhcp4_srv.cc

index 647e10329422bcfe1c0ecd106c268bb63084a17b..2135c1886cf2c07226369c6ab54c1ed5d225d5b2 100644 (file)
@@ -353,7 +353,7 @@ const char* values[] = {
     "DHCP4_RESPONSE_HOSTNAME_DATA", "%1: including Hostname option in the server's response: %2",
     "DHCP4_RESPONSE_HOSTNAME_GENERATE", "%1: server has generated hostname %2 for the client",
     "DHCP4_SERVER_FAILED", "server failed: %1",
-    "DHCP4_SERVER_INITIATED_DECLINE", "Lease for addr %1 has been found to be already in use. The lease will be unavailable for %2 seconds.",
+    "DHCP4_SERVER_INITIATED_DECLINE", "%1: Lease for addr %2 has been found to be already in use. The lease will be unavailable for %3 seconds.",
     "DHCP4_SERVER_INITIATED_DECLINE_ADD_FAILED", "%1: error adding a lease for address %2",
     "DHCP4_SERVER_INITIATED_DECLINE_FAILED", "%1: error on server-initiated decline lease for address %2: %3",
     "DHCP4_SERVER_INITIATED_DECLINE_RESOURCE_BUSY", "%1: error declining a lease for address %2",
index c3e5d624f39910a3577f17d96acd7548722774e5..2ee2c43cc11dc12e62fa8a1e2d073e620ceb3978 100644 (file)
@@ -988,7 +988,7 @@ generated hostname.
 The DHCPv4 server has encountered a fatal error and is terminating.
 The reason for the failure is included in the message.
 
-% DHCP4_SERVER_INITIATED_DECLINE Lease for addr %1 has been found to be already in use. The lease will be unavailable for %2 seconds.
+% DHCP4_SERVER_INITIATED_DECLINE %1: Lease for addr %2 has been found to be already in use. The lease will be unavailable for %3 seconds.
 This informational message is printed when the server has detected via
 ICMP ECHO (i.e. ping check) or other means that a lease which should be
 free to offer is actually in use. This message may indicate a misconfiguration
index d7df95d8affb4e18b16d94a0c9b9ae80cd75b0f4..f189aee01f285795ead40551659357460a325e9d 100644 (file)
@@ -4129,6 +4129,7 @@ void
 Dhcpv4Srv::serverDecline(hooks::CalloutHandlePtr& callout_handle, Pkt4Ptr& query,
                          Lease4Ptr lease, bool lease_exists) {
     LOG_INFO(lease4_logger, DHCP4_SERVER_INITIATED_DECLINE)
+            .arg(query->getLabel())
             .arg(lease->addr_.toText())
             .arg(lease->valid_lft_);