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

Used klog for katib - part 1. #526

Merged
merged 1 commit into from
May 17, 2019
Merged

Conversation

gyliu513
Copy link
Member

@gyliu513 gyliu513 commented May 15, 2019

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes part of #506

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Used klog for katib.

This change is Reviewable

@gyliu513 gyliu513 force-pushed the klog branch 6 times, most recently from 070ac23 to 3389e58 Compare May 16, 2019 06:52
@gyliu513 gyliu513 changed the title WIP Used klog for katib. Used klog for katib - part 1. May 16, 2019
@gyliu513
Copy link
Member Author

I will follow up with another PR to update files which using ZapLogger.

@gyliu513
Copy link
Member Author

/cc @hougangliu @gaocegege

@gyliu513
Copy link
Member Author

/retest

@johnugeorge
Copy link
Member

@gyliu513 Can you reply to this #506 (comment) ?

@hougangliu
Copy link
Member

/lgtm

@gaocegege
Copy link
Member

This PR mainly replace log in cmd with klog. I am not sure if we should replace zaplogger in controller. Persoanlly LGTM

Please rebase

@gyliu513
Copy link
Member Author

@gaocegege Please see comments here #526 (comment)

@gaocegege
Copy link
Member

Yeah I know you will do it in another PR. But I am not sure if we need it. You need to persuade Johnu 😄

@gaocegege
Copy link
Member

But personally, I think we could use klog.

"google.golang.org/grpc/status"
"k8s.io/klog"
Copy link
Member

Choose a reason for hiding this comment

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

api.pb.gw.go files are generated based on api.proto, I don't think we should modify the files manually

Copy link
Member Author

@gyliu513 gyliu513 May 17, 2019

Choose a reason for hiding this comment

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

Done

}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr)
klog.Fatalf("Failed to close conn to %s: %v", endpoint, cerr)
Copy link
Member

Choose a reason for hiding this comment

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

refer to below comment

@hougangliu
Copy link
Member

@gyliu513 thanks!
/lgtm
@johnugeorge WDYT?

@johnugeorge
Copy link
Member

Please rebase the changes
/lgtm

@hougangliu
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hougangliu

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

@k8s-ci-robot k8s-ci-robot merged commit ad8fe2b into kubeflow:master May 17, 2019
@gyliu513 gyliu513 deleted the klog branch May 17, 2019 11:30
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.

5 participants