Restruct logger order

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 09:25:10 +08:00
parent 3f8f2547be
commit 64392c32c6
5 changed files with 35 additions and 24 deletions

View File

@@ -7,9 +7,10 @@ import (
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
)
func GinLogger(log *logrus.Logger) gin.HandlerFunc {
func GinLogger() gin.HandlerFunc {
return func(c *gin.Context) {
var body []byte
if c.Request.Body != nil {