From 7aede97ec3443badb6c0d11d39918455397eaa8b Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Fri, 23 Sep 2022 19:01:39 +0200 Subject: [PATCH] test(project): restore default log level to 'error' Signed-off-by: Xavier Coulon --- testsupport/log_init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsupport/log_init.go b/testsupport/log_init.go index 2c0f2505..6d96158e 100644 --- a/testsupport/log_init.go +++ b/testsupport/log_init.go @@ -27,11 +27,11 @@ func init() { func parseLogLevel() log.Level { var logLevel string // needed to let ginkgo parse the flag, otherwise, `ginkgo -- --loglevel=...` will fail with `flag provided but not defined: -loglevel` - flag.StringVar(&logLevel, "loglevel", "warn", "log level to set [debug|info|warn|error|fatal|panic]") + flag.StringVar(&logLevel, "loglevel", "error", "log level to set [debug|info|warn|error|fatal|panic]") // parse with a custom flagset in which all other flags (ginkgo's) are ignored f := pflag.NewFlagSet("passthroughs", pflag.ContinueOnError) f.ParseErrorsWhitelist.UnknownFlags = true - f.StringVarP(&logLevel, "loglevel", "l", "warn", "log level to set [debug|info|warn|error|fatal|panic]") + f.StringVarP(&logLevel, "loglevel", "l", "error", "log level to set [debug|info|warn|error|fatal|panic]") if err := f.Parse(os.Args[1:]); err != nil { panic(err) }