From: Michael Tremer Date: Fri, 10 May 2024 16:31:25 +0000 (+0100) Subject: unbound-dhcp-leases-bridge: Log if a lease is not being added X-Git-Tag: v2.29-core188~10^2~86^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2761068cce358a3b94e75b7e7a99677df3f0daf;p=ipfire-2.x.git unbound-dhcp-leases-bridge: Log if a lease is not being added Signed-off-by: Michael Tremer --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index 64a8eef216..e466cdaf94 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -288,14 +288,17 @@ class UnboundDHCPLeasesBridge(object): def _add_lease(self, lease): # Skip leases without an FQDN if not lease.fqdn: + log.debug("Skipping lease without an FQDN: %s" % lease) return # Skip any leases that also are a static host elif lease.fqdn in self.hosts: + log.debug("Skipping lease for which a static host exists: %s" % lease) return # Don't add inactive or expired leases elif not lease.active or lease.expired: + log.debug("Skipping inactive or expired lease: %s" % lease) return # Remove any previous leases