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

Use logrus consistently for logging #1414

Merged
merged 3 commits into from
Jan 7, 2020

Conversation

SimonAlling
Copy link
Contributor

Description of the change

It replaces github.com/golang/glog and k8s.io/klog with github.com/sirupsen/logrus.

Benefits

  • Logging becomes more consistent.

Possible drawbacks

  • Before this PR, V from glog was sometimes used, for example like this:

    glog.V(4).Info("Hello!")

    This PR simply replaces glog.V(4) with log, which might affect verbosity. I don't know if this matters.

Applicable issues

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SimonAlling! I was checking the CI and I noticed it failed because there is a flag that can be used only with glog in the apprepository-controller so you will need to remove it: --logtostderr here:
https://github.com/kubeapps/kubeapps/blob/master/chart/kubeapps/templates/apprepository-deployment.yaml#L44

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andresmgot andresmgot merged commit 6044a5d into vmware-tanzu:master Jan 7, 2020
@SimonAlling SimonAlling deleted the consistent-logging branch January 7, 2020 16:20
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.

Decide on a logging library (glog, klog or logrus)
2 participants