diff --git a/middleware/middleware.go b/middleware/middleware.go index 778317b..cdd75be 100644 --- a/middleware/middleware.go +++ b/middleware/middleware.go @@ -40,7 +40,7 @@ func LogMiddleware(c *gin.Context) { } entry.Int("statuscode", statuscode) } - entry.Bytes("xid", id.Bytes()).Msg("Request") + entry.Str("xid", id.String()).Msg("Request") }() c.Next() }