better log

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-14 13:26:12 +02:00
parent 2bba0ddd74
commit ad57c66a32
4 changed files with 22 additions and 25 deletions

View File

@ -1,6 +1,8 @@
package debug
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
log "github.com/sirupsen/logrus"
@ -19,3 +21,7 @@ func DebugPacket(p *radius.Packet) {
}
log.Debug(layer.(*layers.RADIUS))
}
func FormatBytes(d []byte) string {
return fmt.Sprintf("% x", d)
}