🔧 Add support for logLevel in any case (#231)

This commit is contained in:
mathieuHa
2025-04-06 10:41:16 +02:00
committed by GitHub
parent 7f99266f99
commit 78869ecf77
4 changed files with 15 additions and 5 deletions
+1
View File
@@ -93,6 +93,7 @@ type Bouncer struct {
// New creates the crowdsec bouncer plugin.
func New(_ context.Context, next http.Handler, config *configuration.Config, name string) (http.Handler, error) {
config.LogLevel = strings.ToUpper(config.LogLevel)
log := logger.New(config.LogLevel, config.LogFilePath)
err := configuration.ValidateParams(config)
if err != nil {