no need to split and rejoin here.

This commit is contained in:
onyx-and-iris 2024-03-21 07:35:07 +00:00
parent f6f0044a84
commit 690fabddaf

View File

@ -85,9 +85,8 @@ func (s *Session) proxyFrom(buf []byte) error {
return err return err
} }
if s.isRconResponsePacket(buf) && log.GetLevel() == log.DebugLevel { if s.isRconResponsePacket(buf) {
parts := strings.Split(string(buf[10:]), " ") log.Debugf("Response: %s", string(buf[10:]))
log.Debugf("Response: %s", strings.Join(parts, " "))
} }
return nil return nil