2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 15:35:17 +00:00

[#2820] add tid in some ddns logs

This commit is contained in:
Piotrek Zadroga
2024-04-24 11:58:08 +02:00
parent ca345208ea
commit 6e53676c1e
3 changed files with 5 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ const char* values[] = {
"DHCP6_DB_RECONNECT_LOST_CONNECTION", "database connection lost.", "DHCP6_DB_RECONNECT_LOST_CONNECTION", "database connection lost.",
"DHCP6_DB_RECONNECT_NO_DB_CTL", "unexpected error in database reconnect", "DHCP6_DB_RECONNECT_NO_DB_CTL", "unexpected error in database reconnect",
"DHCP6_DB_RECONNECT_SUCCEEDED", "database connection recovered.", "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_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_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", "DHCP6_DDNS_GENERATE_FQDN", "%1: client did not send a FQDN option; FQDN will be",

View File

@@ -198,7 +198,7 @@ should be reported.
This info message indicates that the connection has been recovered and the dhcp This info message indicates that the connection has been recovered and the dhcp
service has been restored. 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 This debug message is logged when the new NameChangeRequest has been created
to perform the DNS Update, which adds new RRs. to perform the DNS Update, which adds new RRs.

View File

@@ -2416,8 +2416,9 @@ Dhcpv6Srv::createNameChangeRequests(const Pkt6Ptr& answer,
calculateDdnsTtl(iaaddr->getValid(), calculateDdnsTtl(iaaddr->getValid(),
ctx.getDdnsParams()->getTtlPercent()), ctx.getDdnsParams()->getTtlPercent()),
cr_mode)); cr_mode));
LOG_DEBUG(ddns6_logger, DBG_DHCP6_DETAIL, LOG_DEBUG(ddns6_logger, DBG_DHCP6_DETAIL, DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST)
DHCP6_DDNS_CREATE_ADD_NAME_CHANGE_REQUEST).arg(ncr->toText()); .arg(answer->getLabel())
.arg(ncr->toText());
// Post the NCR to the D2ClientMgr. // Post the NCR to the D2ClientMgr.
CfgMgr::instance().getD2ClientMgr().sendRequest(ncr); CfgMgr::instance().getD2ClientMgr().sendRequest(ncr);