v0.0.365
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m24s

This commit is contained in:
Mike Schwörer 2024-01-09 18:23:46 +01:00
parent 668f308565
commit 617298c366
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ import (
type GinWrapper struct { type GinWrapper struct {
engine *gin.Engine engine *gin.Engine
SuppressGinLogs bool suppressGinLogs bool
allowCors bool allowCors bool
ginDebug bool ginDebug bool
@ -51,7 +51,7 @@ func NewEngine(opt Options) *GinWrapper {
wrapper := &GinWrapper{ wrapper := &GinWrapper{
engine: engine, engine: engine,
SuppressGinLogs: false, suppressGinLogs: false,
allowCors: langext.Coalesce(opt.AllowCors, false), allowCors: langext.Coalesce(opt.AllowCors, false),
ginDebug: langext.Coalesce(opt.GinDebug, true), ginDebug: langext.Coalesce(opt.GinDebug, true),
bufferBody: langext.Coalesce(opt.BufferBody, false), bufferBody: langext.Coalesce(opt.BufferBody, false),
@ -75,7 +75,7 @@ func NewEngine(opt Options) *GinWrapper {
ginlogger := gin.Logger() ginlogger := gin.Logger()
engine.Use(func(context *gin.Context) { engine.Use(func(context *gin.Context) {
if !wrapper.SuppressGinLogs { if !wrapper.suppressGinLogs {
ginlogger(context) ginlogger(context)
} }
}) })

View File

@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.364" const GoextVersion = "0.0.365"
const GoextVersionTimestamp = "2024-01-09T18:17:55+0100" const GoextVersionTimestamp = "2024-01-09T18:23:46+0100"