diff --git a/aws-cfg-generator/main.go b/aws-cfg-generator/main.go index 3291d9a..646b689 100644 --- a/aws-cfg-generator/main.go +++ b/aws-cfg-generator/main.go @@ -14,6 +14,7 @@ package main */ import ( + "os" "time" "github.com/alecthomas/kong" @@ -29,6 +30,8 @@ func main() { var cli cmd.CLI ctx := kong.Parse(&cli) + log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr}) + if cli.Debug { zerolog.SetGlobalLevel(zerolog.DebugLevel) } else {