diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-05 11:10:21 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-05 11:10:35 +0100 |
commit | 40d77d7b1d1b41bd1f2f5a00037d21858114e188 (patch) | |
tree | 513d16248a431d0b09fbf68685dacc4f2a2d46b6 /lib/xdsserver/sessions.go | |
parent | df1af33ecdd4295171c4efa116c62a03f39df881 (diff) |
Improved Silly logging.
Diffstat (limited to 'lib/xdsserver/sessions.go')
-rw-r--r-- | lib/xdsserver/sessions.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/xdsserver/sessions.go b/lib/xdsserver/sessions.go index 61f2f26..f7ce846 100644 --- a/lib/xdsserver/sessions.go +++ b/lib/xdsserver/sessions.go @@ -217,10 +217,8 @@ func (s *Sessions) monitorSessMap() { s.Log.Debugln("Stop monitorSessMap") return case <-time.After(sessionMonitorTime * time.Second): - if s.LogLevelSilly { - s.Log.Debugf("Sessions Map size: %d", len(s.sessMap)) - s.Log.Debugf("Sessions Map : %v", s.sessMap) - } + s.LogSillyf("Sessions Map size: %d", len(s.sessMap)) + s.LogSillyf("Sessions Map : %v", s.sessMap) if len(s.sessMap) > maxSessions { s.Log.Errorln("TOO MUCH sessions, cleanup old ones !") |