swap out logrus for charm log

This commit is contained in:
2026-02-16 10:29:27 +00:00
parent f07a45c81b
commit 51a0065e79
6 changed files with 56 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import (
"net"
"time"
log "github.com/sirupsen/logrus"
"github.com/charmbracelet/log"
)
// Client represents a UDP proxy server that forwards rcon and query packets between clients and a target server.
@@ -87,7 +87,7 @@ func (c *Client) pruneSessions() {
for _, session := range c.sessionCache.data {
if time.Since(session.updateTime) > c.sessionTimeout {
c.sessionCache.delete(session.caddr.String())
log.Tracef("session for %s deleted", session.caddr)
log.Debugf("session for %s deleted", session.caddr)
}
}
}