|
@@ -4,6 +4,7 @@ import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/gin-gonic/gin"
|
|
"runtime/debug"
|
|
"runtime/debug"
|
|
"slices"
|
|
"slices"
|
|
|
|
+ "strconv"
|
|
"time"
|
|
"time"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -18,10 +19,9 @@ func GinLogger(skipPaths []string) gin.HandlerFunc {
|
|
}
|
|
}
|
|
|
|
|
|
end := time.Now()
|
|
end := time.Now()
|
|
- Info(" %d | %d | %s | %s \"%s\"",
|
|
|
|
|
|
+ Info(" %d | %s | %s \"%s\"",
|
|
c.Writer.Status(),
|
|
c.Writer.Status(),
|
|
- end.Sub(start),
|
|
|
|
- c.ClientIP(),
|
|
|
|
|
|
+ strconv.Itoa(int(end.Sub(start).Milliseconds()))+"ms",
|
|
c.Request.Method,
|
|
c.Request.Method,
|
|
path,
|
|
path,
|
|
)
|
|
)
|