summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/dhcp4_messages.cc
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2024-08-19 13:33:18 +0200
committerAndrei Pavel <andrei@isc.org>2024-08-22 14:47:23 +0200
commit2aa6b29b1308d803818788451e10da46c83ec9ed (patch)
treeeb76565683c94130e381ac92212a08f6e3436011 /src/bin/dhcp4/dhcp4_messages.cc
parent[#1945] take premium exhonerated duplicate messages into account (diff)
downloadkea-2aa6b29b1308d803818788451e10da46c83ec9ed.tar.xz
kea-2aa6b29b1308d803818788451e10da46c83ec9ed.zip
[#1945] log EVAL_RESULT messages only at debug level
- Split the 15 occurrences of EVAL_RESULT into one message for each log call in code. - Log all these messages only on debug level 50. - Remove bad practice `catch (...)` and the message logged on that if-branch.
Diffstat (limited to 'src/bin/dhcp4/dhcp4_messages.cc')
-rw-r--r--src/bin/dhcp4/dhcp4_messages.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/dhcp4/dhcp4_messages.cc b/src/bin/dhcp4/dhcp4_messages.cc
index fca4919fbe..9d4cedc5e4 100644
--- a/src/bin/dhcp4/dhcp4_messages.cc
+++ b/src/bin/dhcp4/dhcp4_messages.cc
@@ -148,6 +148,8 @@ extern const isc::log::MessageID DHCP4_RELEASE_FAIL = "DHCP4_RELEASE_FAIL";
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_NO_LEASE = "DHCP4_RELEASE_FAIL_NO_LEASE";
extern const isc::log::MessageID DHCP4_RELEASE_FAIL_WRONG_CLIENT = "DHCP4_RELEASE_FAIL_WRONG_CLIENT";
extern const isc::log::MessageID DHCP4_REQUEST = "DHCP4_REQUEST";
+extern const isc::log::MessageID DHCP4_REQUIRED_CLASS_EVAL_ERROR = "DHCP4_REQUIRED_CLASS_EVAL_ERROR";
+extern const isc::log::MessageID DHCP4_REQUIRED_CLASS_EVAL_RESULT = "DHCP4_REQUIRED_CLASS_EVAL_RESULT";
extern const isc::log::MessageID DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED = "DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED";
extern const isc::log::MessageID DHCP4_RESERVED_HOSTNAME_ASSIGNED = "DHCP4_RESERVED_HOSTNAME_ASSIGNED";
extern const isc::log::MessageID DHCP4_RESPONSE_DATA = "DHCP4_RESPONSE_DATA";
@@ -324,6 +326,8 @@ const char* values[] = {
"DHCP4_RELEASE_FAIL_NO_LEASE", "%1: client is trying to release non-existing lease %2",
"DHCP4_RELEASE_FAIL_WRONG_CLIENT", "%1: client is trying to release the lease %2 which belongs to a different client",
"DHCP4_REQUEST", "%1: server is processing DHCPREQUEST with hint=%2",
+ "DHCP4_REQUIRED_CLASS_EVAL_ERROR", "%1: Expression '%2' evaluated to %3",
+ "DHCP4_REQUIRED_CLASS_EVAL_RESULT", "%1: Expression '%2' evaluated to %3",
"DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED", "Multi-threading is enabled and host reservations lookup is always performed first.",
"DHCP4_RESERVED_HOSTNAME_ASSIGNED", "%1: server assigned reserved hostname %2",
"DHCP4_RESPONSE_DATA", "%1: responding with packet %2 (type %3), packet details: %4",