Make session collector less chatty

This commit is contained in:
Ingo Oppermann
2024-04-10 10:38:35 +02:00
parent 7a4875f818
commit 29fa94ed52

View File

@@ -347,7 +347,7 @@ func newCollector(id string, sessionsCh chan<- Session, logger log.Logger, histo
})
// Only log session that have been active
logger.Info().Log("Closed")
logger.Debug().Log("Closed")
if c.collectHistory {
c.lock.history.Lock()
@@ -600,7 +600,7 @@ func (c *collector) Activate(id string) bool {
c.currentActiveSessions++
c.totalSessions++
sess.logger.Info().Log("Active")
sess.logger.Debug().Log("Active")
return true
}