]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[#72] Conditional compile out lease scrub log message
authorThomas Markwalder <tmark@isc.org>
Mon, 6 Jan 2020 16:25:21 +0000 (11:25 -0500)
committerThomas Markwalder <tmark@isc.org>
Tue, 14 Jan 2020 12:27:09 +0000 (12:27 +0000)
added a release note

server/failover.c
    scrub_lease() - wrap log message with DEBUG_FAILOVER_MESSAGES

RELNOTES
server/failover.c

index 27c51f6ba3ac011a45c367467c79037b693befd7..51c61454331ed9907d4c208044ec59e8293e4943 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -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
index 72f7b00ee660e66ec820b18725e7507f0a50967b..e3821eb092f679da97e30c99224b53d059d8531c 100644 (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);