From 780905ba35a5610135635af18b9cfb5ef0fb7fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 11 Mar 2024 20:43:37 +0100 Subject: [PATCH] v0.0.411 --- ginext/engine.go | 10 +++++----- goextVersion.go | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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"