Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
Signed-off-by: Fata Nugraha <[email protected]>
  • Loading branch information
fatanugraha committed Jan 9, 2025
1 parent ac7404b commit e7bf941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/services/dns/dns_config_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ func (r *dnsConfig) init() error {
func (r *dnsConfig) refreshNameservers() error {
nsList, err := getDNSHostAndPort(etcResolvConfPath)
if err != nil {
log.Errorf("can't load dns nameservers: %v", err)
return err
}

log.Infof("reloading dns nameservers to %v", nsList)

r.mu.Lock()
r.nameservers = nsList
r.mu.Unlock()
Expand Down

0 comments on commit e7bf941

Please sign in to comment.