🔧 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
+2 -2
View File
@@ -268,8 +268,8 @@ func ValidateParams(config *Config) error {
}
// Check logging configuration
if !contains([]string{LogERROR, LogDEBUG, LogINFO}, config.LogLevel) {
// to upper allow of anycase of log level
if !contains([]string{LogERROR, LogDEBUG, LogINFO}, strings.ToUpper(config.LogLevel)) {
return fmt.Errorf("LogLevel should be one of (%s,%s,%s)", LogDEBUG, LogINFO, LogERROR)
}
if config.LogFilePath != "" {