add debug log

This commit is contained in:
Jay 2019-05-09 14:15:42 +08:00
parent 293b4ce795
commit 07cf878e31
1 changed files with 2 additions and 0 deletions

View File

@ -40,11 +40,13 @@ func UpdateDDNS(c *context.Context) {
c.DataFormat(nil)
return
}
log.Println("req body :: ", body)
ip := tools.RemoteIP(c.Request)
log.Println("Client IP :: ", ip)
if len(body.Domain) == 0 {
log.Println("domain list empty")
c.DataFormat(nil)
return
}