añadir más información en errores
This commit is contained in:
parent
11043db6f6
commit
e27c98c404
2 changed files with 2 additions and 2 deletions
2
main.go
2
main.go
|
@ -37,7 +37,7 @@ func main() {
|
||||||
go func(d Domain, wg *sync.WaitGroup) {
|
go func(d Domain, wg *sync.WaitGroup) {
|
||||||
record, err := d.NameServer.SetRecord(ctx, d.Name, config.Ip)
|
record, err := d.NameServer.SetRecord(ctx, d.Name, config.Ip)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Printf("[%s] error: %s", d.Name, err.Error())
|
||||||
// TODO: Reportar errores
|
// TODO: Reportar errores
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ func (h *HeNet) SetRecord(ctx context.Context, domain string, overrideIp string)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
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), " ")
|
things := strings.Split(string(body), " ")
|
||||||
if len(things) != 2 {
|
if len(things) != 2 {
|
||||||
|
|
Reference in a new issue