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 {
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user