2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

[#3203] Log packet recv and send at INFO

Added ChangeLog entry

src/bin/dhcp4/dhcp4_srv.cc
    DHCP4_PACKET_RECEIVED and DHCP4_PACKET_SEND moved to INFO

src/bin/dhcp6/dhcp6_srv.cc
    DHCP6_PACKET_RECEIVED and DHCP6_PACKET_SEND moved to INFO
This commit is contained in:
Thomas Markwalder 2024-05-08 15:10:29 -04:00
parent b324d5bea0
commit f49b1825cb
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2230. [func] tmark
Both kea-dhcp4 and kea-dhcp6 will now emit a INFO
level log statement for each packet received and
sent by the server. Formerly these logs were only
emitted at DEBUG level.
(Gitlab #3203)
2229. [bug] tmark
Modified configure.ac to detect versions of MySQL
client libary for which MYSQL_OPT_RECONNECT is

View File

@ -1397,7 +1397,7 @@ Dhcpv4Srv::processPacket(Pkt4Ptr query, bool allow_answer_park) {
// We have sanity checked (in accept() that the Message Type option
// exists, so we can safely get it here.
int type = query->getType();
LOG_DEBUG(packet4_logger, DBG_DHCP4_BASIC_DATA, DHCP4_PACKET_RECEIVED)
LOG_INFO(packet4_logger, DHCP4_PACKET_RECEIVED)
.arg(query->getLabel())
.arg(query->getName())
.arg(type)
@ -1938,7 +1938,7 @@ Dhcpv4Srv::processPacketBufferSend(CalloutHandlePtr& callout_handle,
callout_handle->getArgument("response4", rsp);
}
LOG_DEBUG(packet4_logger, DBG_DHCP4_BASIC, DHCP4_PACKET_SEND)
LOG_INFO(packet4_logger, DHCP4_PACKET_SEND)
.arg(rsp->getLabel())
.arg(rsp->getName())
.arg(static_cast<int>(rsp->getType()))

View File

@ -868,7 +868,7 @@ Dhcpv6Srv::processPacket(Pkt6Ptr query) {
// Assign this packet to a class, if possible
classifyPacket(query);
LOG_DEBUG(packet6_logger, DBG_DHCP6_BASIC_DATA, DHCP6_PACKET_RECEIVED)
LOG_INFO(packet6_logger, DHCP6_PACKET_RECEIVED)
.arg(query->getLabel())
.arg(query->getName())
.arg(static_cast<int>(query->getType()))
@ -1437,7 +1437,7 @@ Dhcpv6Srv::processPacketBufferSend(CalloutHandlePtr& callout_handle,
callout_handle->getArgument("response6", rsp);
}
LOG_DEBUG(packet6_logger, DBG_DHCP6_BASIC, DHCP6_PACKET_SEND)
LOG_INFO(packet6_logger, DHCP6_PACKET_SEND)
.arg(rsp->getLabel())
.arg(rsp->getName())
.arg(static_cast<int>(rsp->getType()))