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 instead of glog in service_control #695

Merged
merged 1 commit into from
Jun 25, 2018
Merged

Use logrus instead of glog in service_control #695

merged 1 commit into from
Jun 25, 2018

Conversation

codeflitting
Copy link
Member

@codeflitting codeflitting commented Jun 25, 2018

fix #635

This change is Reviewable

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@codeflitting
Copy link
Member Author

/cc @gaocegege

@k8s-ci-robot k8s-ci-robot requested a review from gaocegege June 25, 2018 06:45
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 57.87% when pulling 4dee41b on codeflitting:switch-glog-to-logrus into 9734e53 on kubeflow:master.

@coveralls
Copy link

coveralls commented Jun 25, 2018

Coverage Status

Coverage decreased (-0.07%) to 57.882% when pulling 5615b9d on codeflitting:switch-glog-to-logrus into 9734e53 on kubeflow:master.

@@ -123,7 +125,9 @@ func (r RealServiceControl) DeleteService(namespace, serviceID string, object ru
if err != nil {
return fmt.Errorf("object does not have ObjectMeta, %v", err)
}
glog.V(2).Infof("Controller %v deleting service %v/%v", accessor.GetName(), namespace, serviceID)
if log.GetLevel() >= log.ErrorLevel {
Copy link
Member

Choose a reason for hiding this comment

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

I think we could just use log.Infof without checking the level. Do you think it is necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

no need to check level, fix it right now

@gaocegege
Copy link
Member

/ok-to-test

@gaocegege
Copy link
Member

Please use your account to submit the commit and sign Google CLA.

@googlebot
Copy link

CLAs look good, thanks!

@gaocegege
Copy link
Member

gaocegege commented Jun 25, 2018

@codeflitting Could you please set git config to use your email registered in GitHub as the user.email then repush it again? Then we could visit your profile according to your commit.

@gaocegege
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gaocegege
Copy link
Member

/retest

@kubeflow kubeflow deleted a comment from TravisBuddy Jun 25, 2018
@k8s-ci-robot k8s-ci-robot merged commit 9cb3413 into kubeflow:master Jun 25, 2018
@codeflitting codeflitting deleted the switch-glog-to-logrus branch June 26, 2018 08:37
jetmuffin pushed a commit to jetmuffin/tf-operator that referenced this pull request Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1alpha2][log] Use logrus instead of glog in service_control
5 participants