1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-21 00:29:44 +02:00

Fixup main

This commit is contained in:
Joel Speed
2021-10-06 16:18:46 +01:00
parent 28f3aef69b
commit f691252ca8
2 changed files with 9 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func main() {
}
if *convertConfig && *alphaConfig != "" {
logger.Fatal("cannot use alpha-config and conver-config-to-alpha together")
klog.Fatal("cannot use alpha-config and conver-config-to-alpha together")
}
opts, err := loadConfiguration(*config, *alphaConfig, configFlagSet, os.Args[1:])
@ -189,6 +189,9 @@ func configureKlog(logLevel int) {
if err := klogFlags.Lookup("skip_headers").Value.Set("true"); err != nil {
panic(err)
}
if err := klogFlags.Lookup("stderrthreshold").Value.Set("4"); err != nil {
panic(err)
}
// If this fails, it's a user input error
if err := klogFlags.Lookup("v").Value.Set(fmt.Sprintf("%d", logLevel)); err != nil {