diff options
author | Thomas Markwalder <tmark@isc.org> | 2020-01-06 11:25:21 -0500 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2020-01-14 12:27:09 +0000 |
commit | 5c23b618b2f54db287d678593172fb2def52b77b (patch) | |
tree | 2b40553f1d89c4a97b682819c33decf0aa8b5e4e /server/failover.c | |
parent | 6772ab18a0230abb9494c801ffc11bbf193cc907 (diff) | |
download | isc-dhcp-5c23b618b2f54db287d678593172fb2def52b77b.tar.gz |
[#72] Conditional compile out lease scrub log message72-from-isc-bugs-47555-dhcpd-failover-c-scrubbing-lease-for-emitted-unexpectedly
added a release note
server/failover.c
scrub_lease() - wrap log message with DEBUG_FAILOVER_MESSAGES
Diffstat (limited to 'server/failover.c')
-rw-r--r-- | server/failover.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/failover.c b/server/failover.c index 72f7b00e..e3821eb0 100644 --- a/server/failover.c +++ b/server/failover.c @@ -6572,8 +6572,12 @@ const char *printable(const char* value) { * \param lease the lease to scrub */ void scrub_lease(struct lease* lease, const char *file, int line) { +#if defined (DEBUG_FAILOVER_MESSAGES) + /* While technically not associated with FO messaging this log statement + * draws more questions then it helps, so we'll ifdef it out */ log_debug ("%s(%d):scrubbing lease for %s, hostname: %s", file, line, piaddr(lease->ip_addr), printable(lease->client_hostname)); +#endif if (lease->client_hostname) { dfree (lease->client_hostname, MDL); |