Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

add debug logging to device APIs #949

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Conversation

mikehelmick
Copy link
Contributor

Fixes #946

Proposed Changes

  • Add debug logging to device APIs

Release Note

Added debug logging to device APIs

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Nov 2, 2020
pkg/controller/certapi/certificate.go Outdated Show resolved Hide resolved
@@ -41,6 +42,7 @@ import (
func (c *Controller) HandleVerify() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := observability.WithBuildInfo(r.Context())
ctx = logging.WithLogger(ctx, c.logger.Named("handleverify"))
Copy link
Member

Choose a reason for hiding this comment

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

Hmm - this should be:

logger := c.logger.Named("HandleVerify")

and then update to use logger instead of c.logger in the rest of the method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed - changed direction, don't need this

Copy link
Member

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, sethvargo

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:
  • OWNERS [mikehelmick,sethvargo]

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

@mikehelmick
Copy link
Contributor Author

/retest

@google-oss-robot google-oss-robot merged commit e18a5c7 into google:main Nov 3, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better logging
3 participants