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
}
if s.isRconResponsePacket(buf) && log.GetLevel() == log.DebugLevel {
parts := strings.Split(string(buf[10:]), " ")
log.Debugf("Response: %s", strings.Join(parts, " "))
if s.isRconResponsePacket(buf) {
log.Debugf("Response: %s", string(buf[10:]))
}
return nil