Skip to content

glog elimination round 2 #117

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

Merged

Conversation

DirectXMan12
Copy link
Contributor

glog seems to have a way of creeping back in to our codebase. If you see it in code review, point it out -- you should be using logr instead.

The event recorded was using glog to log, which it should not have been.
Plus, the event information is inherently structured, so it's a win to
provide structured logging of the event.  We probably want to have the
recorder have a unique logger per controller (or consumer in general) --
right now, it's just using the glog manager logger.
This returns glog from the admission internals.  It also fixes a case
where we fail to marshal a response, and then try and write that empty
marshalled response anyway.
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DirectXMan12

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 added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 24, 2018
@k8s-ci-robot k8s-ci-robot requested a review from droot August 24, 2018 00:50
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2018
@DirectXMan12
Copy link
Contributor Author

@droot FYI

Since we don't directly depend on glog any more, we can remove it
from Gopkg.toml.
@DirectXMan12 DirectXMan12 force-pushed the bug/glog-hunting-mark-2 branch from 9412b83 to 78ef8b2 Compare August 24, 2018 18:17
@droot
Copy link
Contributor

droot commented Aug 24, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 24, 2018
@k8s-ci-robot k8s-ci-robot merged commit 67e2874 into kubernetes-sigs:master Aug 24, 2018
@DirectXMan12 DirectXMan12 deleted the bug/glog-hunting-mark-2 branch August 27, 2018 16:02
justinsb pushed a commit to justinsb/controller-runtime that referenced this pull request Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants