diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-04-17 16:50:11 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-04-17 16:50:11 +0200 |
commit | 18d3ee4138105c4070a5f5b5a6afcba1eb50556c (patch) | |
tree | 588030eb24a1dfa42e5c408cc7a732fedd36602c /src/lib/dhcpsrv/cfg_hosts.cc | |
parent | [3699] Updated user guide: new logger for hosts added to the list. (diff) | |
download | kea-18d3ee4138105c4070a5f5b5a6afcba1eb50556c.tar.xz kea-18d3ee4138105c4070a5f5b5a6afcba1eb50556c.zip |
[3699] Addressed review comments.
Diffstat (limited to 'src/lib/dhcpsrv/cfg_hosts.cc')
-rw-r--r-- | src/lib/dhcpsrv/cfg_hosts.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_hosts.cc b/src/lib/dhcpsrv/cfg_hosts.cc index bd173e6ec2..7849e51c0e 100644 --- a/src/lib/dhcpsrv/cfg_hosts.cc +++ b/src/lib/dhcpsrv/cfg_hosts.cc @@ -125,7 +125,7 @@ CfgHosts::getAllInternal(const std::vector<uint8_t>& identifier, storage.push_back(*host); } - // Log how many hosts found. + // Log how many hosts have been found. LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS, HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT) .arg(identifier_text) .arg(storage.size()); @@ -416,6 +416,13 @@ CfgHosts::getHostInternal(const SubnetID& subnet_id, const bool subnet6, .arg(hwaddr ? hwaddr->toText() : "(no-hwaddr)") .arg(duid ? duid->toText() : "(no-duid)") .arg(host->toText()); + + } else { + LOG_DEBUG(hosts_logger, HOSTS_DBG_RESULTS, + HOSTS_CFG_GET_ONE_SUBNET_ID_HWADDR_DUID_NULL) + .arg(subnet_id) + .arg(hwaddr ? hwaddr->toText() : "(no-hwaddr)") + .arg(duid ? duid->toText() : "(no-duid)"); } return (host); |