summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/cfg_hosts.cc
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2015-04-17 10:35:57 +0200
committerMarcin Siodelski <marcin@isc.org>2015-04-17 10:35:57 +0200
commitda05ae70731bf55b015fc478c8cf60c6acb3b02d (patch)
treedd925f347051f82b6a9f97d96ff0dddc0eb0580e /src/lib/dhcpsrv/cfg_hosts.cc
parent[3699] Added data tracing in the CfgHosts class. (diff)
downloadkea-da05ae70731bf55b015fc478c8cf60c6acb3b02d.tar.xz
kea-da05ae70731bf55b015fc478c8cf60c6acb3b02d.zip
[3699] Added traces for cases when no host is found.
Diffstat (limited to 'src/lib/dhcpsrv/cfg_hosts.cc')
-rw-r--r--src/lib/dhcpsrv/cfg_hosts.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/cfg_hosts.cc b/src/lib/dhcpsrv/cfg_hosts.cc
index 4c869886e2..bd173e6ec2 100644
--- a/src/lib/dhcpsrv/cfg_hosts.cc
+++ b/src/lib/dhcpsrv/cfg_hosts.cc
@@ -233,7 +233,7 @@ CfgHosts::get4(const SubnetID& subnet_id, const IOAddress& address) const {
for (ConstHostCollection::const_iterator host = hosts.begin();
host != hosts.end(); ++host) {
if ((*host)->getIPv4SubnetID() == subnet_id) {
- LOG_DEBUG(hosts_logger, HOSTS_DBG_TRACE_DETAIL_DATA,
+ LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS,
HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_HOST)
.arg(subnet_id)
.arg(address.toText())
@@ -241,6 +241,9 @@ CfgHosts::get4(const SubnetID& subnet_id, const IOAddress& address) const {
return (*host);
}
}
+
+ LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS, HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL)
+ .arg(subnet_id).arg(address.toText());
return (ConstHostPtr());
}
@@ -297,10 +300,14 @@ CfgHosts::getHostInternal6(const SubnetID& subnet_id,
getAllInternal6<Storage>(subnet_id, address, storage);
switch (storage.size()) {
case 0:
+ LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS,
+ HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL)
+ .arg(subnet_id)
+ .arg(address.toText());
return (HostPtr());
case 1:
- LOG_DEBUG(hosts_logger, HOSTS_DBG_TRACE_DETAIL_DATA,
+ LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS,
HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_HOST)
.arg(subnet_id)
.arg(address.toText())
@@ -403,7 +410,7 @@ CfgHosts::getHostInternal(const SubnetID& subnet_id, const bool subnet6,
}
if (host) {
- LOG_DEBUG(hosts_logger, HOSTS_DBG_TRACE_DETAIL_DATA,
+ LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS,
HOSTS_CFG_GET_ONE_SUBNET_ID_HWADDR_DUID)
.arg(subnet_id)
.arg(hwaddr ? hwaddr->toText() : "(no-hwaddr)")