1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix lint warnings

This commit is contained in:
TimothyYe
2019-02-27 14:10:51 +08:00
parent 7e30cdf6b2
commit 4a3b2216d3
7 changed files with 29 additions and 8 deletions

View File

@@ -107,7 +107,9 @@ func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.
// Send mail notification if notify is enabled
if handler.Configuration.Notify.Enabled {
log.Print("Sending notification to:", handler.Configuration.Notify.SendTo)
godns.SendNotify(handler.Configuration, rec.Name, currentIP)
if err := godns.SendNotify(handler.Configuration, rec.Name, currentIP); err != nil {
log.Println("Failed to send notification")
}
}
} else {
log.Printf("Record OK: %+v - %+v\r\n", rec.Name, rec.IP)