añadir más información en errores

This commit is contained in:
Cat /dev/Nulo 2023-05-09 09:34:38 -03:00
parent 11043db6f6
commit e27c98c404
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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 {