]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2820] add tid in some ddns logs
authorPiotrek Zadroga <piotrek@isc.org>
Wed, 24 Apr 2024 09:58:08 +0000 (11:58 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Fri, 26 Apr 2024 12:42:46 +0000 (14:42 +0200)
src/bin/dhcp6/dhcp6_messages.cc
src/bin/dhcp6/dhcp6_messages.mes
src/bin/dhcp6/dhcp6_srv.cc

index c7101553dba4968fa6835d04780ddd8b1f4fa918..878314c884abcd7aece0712a7ca7c1cea7930247 100644 (file)
@@ -216,7 +216,7 @@ const char* values[] = {
     "DHCP6_DB_RECONNECT_LOST_CONNECTION", "database connection lost.",
     "DHCP6_DB_RECONNECT_NO_DB_CTL", "unexpected error in database reconnect",
     "DHCP6_DB_RECONNECT_SUCCEEDED", "database connection recovered.",
-    "DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST", "created name change request: %1",
+    "DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST", "%1: created name change request: %2",
     "DHCP6_DDNS_FQDN_GENERATED", "%1: generated FQDN for the client: %2",
     "DHCP6_DDNS_GENERATED_FQDN_UPDATE_FAIL", "%1: failed to update the lease using address %2, after generating FQDN for a client, reason: %3",
     "DHCP6_DDNS_GENERATE_FQDN", "%1: client did not send a FQDN option; FQDN will be",
index 015f60247da50589eeda97a9e38d77deb111fe08..ecd715a0a89362bb13a7ac7861348c26e7c87695 100644 (file)
@@ -198,7 +198,7 @@ should be reported.
 This info message indicates that the connection has been recovered and the dhcp
 service has been restored.
 
-% DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST created name change request: %1
+% DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST %1: created name change request: %2
 This debug message is logged when the new NameChangeRequest has been created
 to perform the DNS Update, which adds new RRs.
 
index ba8e4cbf3b02d1174b74d9ae5305404317f9a960..f091d512a324363ed6bc9c6a5261446559754fbf 100644 (file)
@@ -2416,8 +2416,9 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer,
                                         calculateDdnsTtl(iaaddr->getValid(),
                                                          ctx.getDdnsParams()->getTtlPercent()),
                                         cr_mode));
-        LOG_DEBUG(ddns6_logger, DBG_DHCP6_DETAIL,
-                  DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST).arg(ncr->toText());
+        LOG_DEBUG(ddns6_logger, DBG_DHCP6_DETAIL, DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST)
+            .arg(answer->getLabel())
+            .arg(ncr->toText());
 
         // Post the NCR to the D2ClientMgr.
         CfgMgr::instance().getD2ClientMgr().sendRequest(ncr);