From 533a1a3550d50eb132bf600ddf477c02a4cc0e7d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 26 Nov 2014 13:53:24 +0800 Subject: [PATCH] logging level --- session/sessions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session/sessions.go b/session/sessions.go index d17c9f1..82b5eb6 100644 --- a/session/sessions.go +++ b/session/sessions.go @@ -186,7 +186,7 @@ func WSHandler(w http.ResponseWriter, r *http.Request) { for { 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) 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 }