fix(cwmp): connection request authentication log

This commit is contained in:
leandrofars 2024-07-02 12:06:50 -03:00
parent 010594ac4d
commit 413c03fcd6

View File

@ -156,9 +156,11 @@ func (h *Handler) ConnectionRequest(cpe CPE) error {
ok, err := auth.Auth(h.acsConfig.ConnReqUsername, h.acsConfig.ConnReqPassword, cpe.ConnectionRequestURL)
if !ok {
cpe.Queue.Dequeue()
log.Println("Error while authenticating to CPE: ", err)
}
log.Println("Error while authenticating to CPE, err:", err)
} else {
log.Println("<-- Successfully authenticated to CPE", cpe.SerialNumber)
}
return err
}