logging level
This commit is contained in:
parent
3586ee1c73
commit
533a1a3550
|
@ -186,7 +186,7 @@ func WSHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
for {
|
for {
|
||||||
if err := wsChan.ReadJSON(&input); err != nil {
|
if err := wsChan.ReadJSON(&input); err != nil {
|
||||||
glog.V(3).Infof("[Session Channel] of session [%s] disconnected, releases all resources with it, user [%s]",
|
glog.V(5).Infof("[Session Channel] of session [%s] disconnected, releases all resources with it, user [%s]",
|
||||||
sid, wSession.Username)
|
sid, wSession.Username)
|
||||||
|
|
||||||
WideSessions.Remove(sid)
|
WideSessions.Remove(sid)
|
||||||
|
@ -347,7 +347,7 @@ func (sessions *Sessions) Remove(sid string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(3).Infof("Removed a session [%s] of user [%s], it has [%d] sessions currently", sid, s.Username, cnt)
|
glog.V(5).Infof("Removed a session [%s] of user [%s], it has [%d] sessions currently", sid, s.Username, cnt)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue