This commit is contained in:
+5
-5
@@ -74,12 +74,12 @@ func NewEngine(opt Options) *GinWrapper {
|
|||||||
if !wrapper.ginDebug {
|
if !wrapper.ginDebug {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
|
|
||||||
ginlogger := gin.Logger()
|
if !wrapper.suppressGinLogs {
|
||||||
engine.Use(func(context *gin.Context) {
|
ginlogger := gin.Logger()
|
||||||
if !wrapper.suppressGinLogs {
|
engine.Use(func(context *gin.Context) {
|
||||||
ginlogger(context)
|
ginlogger(context)
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
gin.SetMode(gin.DebugMode)
|
gin.SetMode(gin.DebugMode)
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
package goext
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user