From e7bf941be5aafe4ce7ec933de9456c52a5f33c40 Mon Sep 17 00:00:00 2001 From: Fata Nugraha Date: Thu, 9 Jan 2025 18:30:48 +0800 Subject: [PATCH] Add logs Signed-off-by: Fata Nugraha --- pkg/services/dns/dns_config_unix.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/services/dns/dns_config_unix.go b/pkg/services/dns/dns_config_unix.go index 1d8e1783..9d795a83 100644 --- a/pkg/services/dns/dns_config_unix.go +++ b/pkg/services/dns/dns_config_unix.go @@ -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()