From 5dc65bc471588ccb750d0a5d619b60960db30b82 Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Tue, 1 Oct 2024 09:05:29 -0600 Subject: [PATCH] Log if nsgroup is enabled --- client/internal/dns/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/internal/dns/server.go b/client/internal/dns/server.go index 60f0f4017ee..fa1a5b6f6bc 100644 --- a/client/internal/dns/server.go +++ b/client/internal/dns/server.go @@ -503,7 +503,9 @@ func (s *DefaultServer) toggleNameServerGroupsOnStatus(nameServerGroups []*nbdns hasPublicNameServer = true } } - nsGroup.Enabled = hasPublicNameServer || (peerCount >= 1) + isEnable := hasPublicNameServer || (peerCount >= 1) + log.Infof("Name servers: %#v are enabled %t", nsGroup.Name, isEnable) + nsGroup.Enabled = isEnable } }