From 016dc7fe5ba74477f8600f982578ad0f2ebf60bb Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sun, 13 Aug 2023 22:33:57 +0200 Subject: [PATCH] Improve logging --- bootserver/udplistener/udplistener.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bootserver/udplistener/udplistener.go b/bootserver/udplistener/udplistener.go index 1a75c02..a583b27 100644 --- a/bootserver/udplistener/udplistener.go +++ b/bootserver/udplistener/udplistener.go @@ -120,6 +120,7 @@ func (l *UDPListener) listen() (*udpMessage, error) { return nil, fmt.Errorf("UDP packet too big (%d/%d)", n, bufferLength) } + l.log.Debugf("Parsing UDP message %q", bytes.Trim(buffer, "\x00")) parsedMsg, err := bootprotocol.MessageFromBytes(bytes.Trim(buffer, "\x00")) if err != nil { return nil, fmt.Errorf("failed to parse message: %w", err)