2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 01:49:35 +00:00

[#72] Conditional compile out lease scrub log message

added a release note

server/failover.c
    scrub_lease() - wrap log message with DEBUG_FAILOVER_MESSAGES
This commit is contained in:
Thomas Markwalder 2020-01-06 11:25:21 -05:00
parent 6772ab18a0
commit 5c23b618b2
2 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,10 @@ by Eric Young (eay@cryptsoft.com).
dhcpd.conf.5
[Gitlab #37]
- Only emit lease scrubbing log messages when DEBUG_FAILOVER_MESSAGES
is defined.
[Gitlab #72]
Changes since 4.4.1 (New Features)
- A new configuration parameter, ping-cltt-secs (v4 operation only), has

View File

@ -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);