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

This commit is contained in:
2024-01-09 18:23:46 +01:00
parent 668f308565
commit 617298c366
2 changed files with 5 additions and 5 deletions

View File

@@ -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)
}
})