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

Fixup main with Verbose type

This commit is contained in:
Joel Speed
2021-10-06 17:29:03 +01:00
parent bd9bca99f0
commit b08e2f1934
5 changed files with 22 additions and 23 deletions

View File

@ -52,12 +52,12 @@ func main() {
// When running with trace logging, start by logging the observed config.
// This will help users to determine if they have configured the proxy correctly.
// NOTE: This data is not scrubbed and may contain secrets!
if traceLogger().Enabled() {
if traceLogger.Enabled() {
config, err := json.Marshal(opts)
if err != nil {
klog.Fatalf("ERROR: %v", err)
}
traceLogger().Infof("Observed configuration: %s", string(config))
traceLogger.Infof("Observed configuration: %s", string(config))
}
if *convertConfig {