diff --git a/pkg/udpproxy/session.go b/pkg/udpproxy/session.go index 72e7bf0..829dc7a 100644 --- a/pkg/udpproxy/session.go +++ b/pkg/udpproxy/session.go @@ -85,7 +85,7 @@ func (s *Session) proxyFrom(buf []byte) error { return err } - if s.isRconResponsePacket(buf) { + if s.isRconResponsePacket(buf) && log.GetLevel() == log.DebugLevel { parts := strings.Split(string(buf[10:]), " ") log.Debugf("Response: %s", strings.Join(parts, " ")) }