chore(cwmp): status log filter
This commit is contained in:
parent
d33405675c
commit
2ed2111c52
|
|
@ -11,7 +11,9 @@ func (h *Handler) HandleCpeStatus() {
|
|||
if cpe == "" {
|
||||
continue
|
||||
}
|
||||
log.Println("Checking CPE " + cpe + " status")
|
||||
if h.acsConfig.DebugMode {
|
||||
log.Println("Checking CPE " + cpe + " status")
|
||||
}
|
||||
if time.Since(h.Cpes[cpe].LastConnection) > h.acsConfig.KeepAliveInterval {
|
||||
log.Printf("LastConnection: %s, KeepAliveInterval: %s", h.Cpes[cpe].LastConnection, h.acsConfig.KeepAliveInterval)
|
||||
log.Println("CPE", cpe, "is offline")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user