log rcon commands level INFO

This commit is contained in:
onyx-and-iris 2024-03-08 02:29:01 +00:00
parent 88c90f1447
commit 6f49cc5b63

View File

@ -1,9 +1,11 @@
package udpproxy
import (
"log"
"net"
"strings"
"time"
log "github.com/sirupsen/logrus"
)
type Session struct {
@ -62,6 +64,8 @@ func (s *Session) proxyTo(buf []byte) error {
log.Println(err)
return err
}
parts := strings.Split(string(buf), " ")
log.Info("From [", s.caddr, "] Command: ", strings.Join(parts[2:], " "))
return nil
}