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