log parsing errors to stdout

This commit is contained in:
Willy Kloucek
2022-04-28 15:52:26 +02:00
parent 5a6c44afa0
commit 83b94cf82d
60 changed files with 346 additions and 61 deletions

View File

@@ -3,6 +3,7 @@ package command
import (
"context"
"flag"
"fmt"
"os"
"path"
"path/filepath"
@@ -28,7 +29,11 @@ func AuthBasic(cfg *config.Config) *cli.Command {
Name: "auth-basic",
Usage: "start authprovider for basic auth",
Before: func(ctx *cli.Context) error {
return parser.ParseConfig(cfg)
err := parser.ParseConfig(cfg)
if err != nil {
fmt.Printf("%v", err)
}
return err
},
Action: func(c *cli.Context) error {
logCfg := cfg.Logging