Skip to content

Commit

Permalink
Log if nsgroup is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricanehrndz committed Oct 1, 2024
1 parent 571885c commit 5dc65bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/internal/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 5dc65bc

Please sign in to comment.