Improve test coverage

This commit is contained in:
2025-01-06 11:01:20 +00:00
parent a8d65688c4
commit eecb7dfc92
3 changed files with 672 additions and 2 deletions
+4 -2
View File
@@ -187,8 +187,10 @@ func NewLogger(logLevel string) *Logger {
logDebug := log.New(io.Discard, "DEBUG: TraefikOidcPlugin: ", log.Ldate|log.Ltime)
logError.SetOutput(os.Stderr)
logInfo.SetOutput(os.Stdout)
if logLevel == "debug" || logLevel == "info" {
logInfo.SetOutput(os.Stdout)
}
if logLevel == "debug" {
logDebug.SetOutput(os.Stdout)
}