From e27c98c4046d8c05ec8b75b87213cbcdf8b2ff96 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 9 May 2023 09:34:38 -0300 Subject: [PATCH] =?UTF-8?q?a=C3=B1adir=20m=C3=A1s=20informaci=C3=B3n=20en?= =?UTF-8?q?=20errores?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- nameservers/he_net.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c6fa187..dba6caa 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ func main() { go func(d Domain, wg *sync.WaitGroup) { record, err := d.NameServer.SetRecord(ctx, d.Name, config.Ip) if err != nil { - log.Println(err) + log.Printf("[%s] error: %s", d.Name, err.Error()) // TODO: Reportar errores return } diff --git a/nameservers/he_net.go b/nameservers/he_net.go index 6dd4e86..6f2013f 100644 --- a/nameservers/he_net.go +++ b/nameservers/he_net.go @@ -39,7 +39,7 @@ func (h *HeNet) SetRecord(ctx context.Context, domain string, overrideIp string) if err != nil { return "", err } - log.Printf("[he.net ddns] Response: %s", string(body)) + log.Printf("[he.net ddns(%s)] Response: %s", domain, string(body)) things := strings.Split(string(body), " ") if len(things) != 2 {