mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-04-18 07:43:31 +00:00
-loglevel now of string type
Some checks failed
Auto-Update Go Modules / update-go-modules (push) Has been cancelled
Some checks failed
Auto-Update Go Modules / update-go-modules (push) Has been cancelled
update Logging section in README. upd CHANGELOG
This commit is contained in:
@@ -3,6 +3,8 @@ package packet
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const bufSz = 512
|
||||
@@ -29,5 +31,6 @@ func (r Request) Encode(cmd string) []byte {
|
||||
r.buf.Reset()
|
||||
r.buf.Write(r.Header())
|
||||
r.buf.WriteString(fmt.Sprintf(" %s %s", r.password, cmd))
|
||||
log.Tracef("Encoded request: %s", r.buf.String())
|
||||
return r.buf.Bytes()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user