diff --git a/session/sessions.go b/session/sessions.go index 521bc70..9931709 100644 --- a/session/sessions.go +++ b/session/sessions.go @@ -23,6 +23,7 @@ package session import ( + "bytes" "encoding/json" "net/http" "os" @@ -134,11 +135,15 @@ func FixedTimeReport() { } } - glog.Infof("[%d] users are online and [%d] wide sessions currently", len(users), len(WideSessions)) + var buf bytes.Buffer + buf.WriteString("\n [" + strconv.Itoa(len(users)) + "] users are online and [" + strconv.Itoa(len(WideSessions)) + + "] wide sessions currently\n") for _, t := range users { - glog.Infof(t.report()) + buf.WriteString(" " + t.report() + "\n") } + + glog.Info(buf.String()) } }() }