Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Klog to v2 #224

Merged
merged 2 commits into from Jul 30, 2020
Merged

Update Klog to v2 #224

merged 2 commits into from Jul 30, 2020

Conversation

dvaldivia
Copy link
Collaborator

No description provided.

harshavardhana
harshavardhana previously approved these changes Jul 30, 2020
@harshavardhana
Copy link
Member

You can also add

diff --git a/main.go b/main.go
index 0f9cfe9..84c9ac9 100644
--- a/main.go
+++ b/main.go
@@ -54,6 +54,9 @@ var (
 )
 
 func init() {
+       klog.InitFlags(nil)
+       klog.LogToStderr(true)
+
        flag.StringVar(&kubeconfig, "kubeconfig", "", "path to a kubeconfig. Only required if out-of-cluster")
        flag.StringVar(&masterURL, "master", "", "the address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster")
        flag.StringVar(&hostsTemplate, "hosts-template", "", "the go template to use for hostname formatting of name fields (StatefulSet, CIService, HLService, Ellipsis, Domain)")

@dvaldivia
Copy link
Collaborator Author

@harshavardhana done

@dvaldivia dvaldivia merged commit c2895a5 into minio:master Jul 30, 2020
@dvaldivia dvaldivia deleted the update-klog branch July 30, 2020 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants