You've already forked oauth2-proxy
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:
5
main.go
5
main.go
@ -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 {
|
||||
|
Reference in New Issue
Block a user