v0.0.365
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m24s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m24s
This commit is contained in:
parent
668f308565
commit
617298c366
@ -17,7 +17,7 @@ import (
|
||||
|
||||
type GinWrapper struct {
|
||||
engine *gin.Engine
|
||||
SuppressGinLogs bool
|
||||
suppressGinLogs bool
|
||||
|
||||
allowCors bool
|
||||
ginDebug bool
|
||||
@ -51,7 +51,7 @@ func NewEngine(opt Options) *GinWrapper {
|
||||
|
||||
wrapper := &GinWrapper{
|
||||
engine: engine,
|
||||
SuppressGinLogs: false,
|
||||
suppressGinLogs: false,
|
||||
allowCors: langext.Coalesce(opt.AllowCors, false),
|
||||
ginDebug: langext.Coalesce(opt.GinDebug, true),
|
||||
bufferBody: langext.Coalesce(opt.BufferBody, false),
|
||||
@ -75,7 +75,7 @@ func NewEngine(opt Options) *GinWrapper {
|
||||
|
||||
ginlogger := gin.Logger()
|
||||
engine.Use(func(context *gin.Context) {
|
||||
if !wrapper.SuppressGinLogs {
|
||||
if !wrapper.suppressGinLogs {
|
||||
ginlogger(context)
|
||||
}
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user