diff --git a/ginext/engine.go b/ginext/engine.go index 07ce2f7..6ffedcf 100644 --- a/ginext/engine.go +++ b/ginext/engine.go @@ -74,12 +74,12 @@ func NewEngine(opt Options) *GinWrapper { if !wrapper.ginDebug { gin.SetMode(gin.ReleaseMode) - ginlogger := gin.Logger() - engine.Use(func(context *gin.Context) { - if !wrapper.suppressGinLogs { + if !wrapper.suppressGinLogs { + ginlogger := gin.Logger() + engine.Use(func(context *gin.Context) { ginlogger(context) - } - }) + }) + } } else { gin.SetMode(gin.DebugMode) } diff --git a/goextVersion.go b/goextVersion.go index 09c43ba..f56ce46 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.410" +const GoextVersion = "0.0.411" -const GoextVersionTimestamp = "2024-03-11T20:42:12+0100" +const GoextVersionTimestamp = "2024-03-11T20:43:37+0100"