From b677c8686821a50e98fec0f4d2e66afc6876b8de Mon Sep 17 00:00:00 2001
From: Murali Paluru <leodotcloud@gmail.com>
Date: Tue, 7 Jan 2020 18:34:06 +0530
Subject: [PATCH] remove always true for logtostderr (#548)

* remove always true for logtostderr

* update README for log collection instructions

Co-authored-by: Liz Rice <liz@lizrice.com>
---
 README.md   | 2 +-
 cmd/root.go | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.md b/README.md
index f6f1aa2..d6a6c15 100644
--- a/README.md
+++ b/README.md
@@ -332,7 +332,7 @@ If you think you have found a bug please follow the instructions below.
 - Open a [new issue](https://github.com/aquasecurity/kube-bench/issues/new) if a duplicate doesn't already exist.
 - Note the version of kube-bench you are running (from `kube-bench version`) and the command line options you are using.
 - Note the version of Kubernetes you are running (from `kubectl version` or `oc version` for OpenShift).
-- Set `-v 10` command line option and save the log output. Please paste this into your issue.
+- Set `-v 10 --logtostderr` command line options and save the log output. Please paste this into your issue.
 - Remember users might be searching for your issue in the future, so please give it a meaningful title to help others.
 
 ### Features
diff --git a/cmd/root.go b/cmd/root.go
index 55748ec..52f706e 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -102,7 +102,6 @@ var RootCmd = &cobra.Command{
 // Execute adds all child commands to the root command sets flags appropriately.
 // This is called by main.main(). It only needs to happen once to the rootCmd.
 func Execute() {
-	goflag.Set("logtostderr", "true")
 	goflag.CommandLine.Parse([]string{})
 
 	if err := RootCmd.Execute(); err != nil {
-- 
GitLab