cmd/dnsupdater/main.go: Also log IP when updating a domain record.
This commit is contained in:
parent
5c52e76b11
commit
6331177513
1 changed files with 2 additions and 2 deletions
|
|
@ -31,14 +31,14 @@ func main() {
|
||||||
fmt.Println(" ", "Records")
|
fmt.Println(" ", "Records")
|
||||||
for name, data := range records {
|
for name, data := range records {
|
||||||
|
|
||||||
fmt.Println(" Update: ", name, data)
|
|
||||||
|
|
||||||
ip, err := app.GetIP(data)
|
ip, err := app.GetIP(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(" Update: ", name, data, ip)
|
||||||
|
|
||||||
err = service.Update(domain, name, ip)
|
err = service.Update(domain, name, ip)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error", err)
|
fmt.Println("Error", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue