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

feat: migrate proxy and webhook to mlog #707

Merged
merged 1 commit into from
Jan 24, 2023
Merged

feat: migrate proxy and webhook to mlog #707

merged 1 commit into from
Jan 24, 2023

Conversation

enj
Copy link
Member

@enj enj commented Jan 17, 2023

This is the minimal change required to migrate to mlog with a new --log-level flag. A future change will migrate from logr.Logger to mlog.Logger.

This change does not migrate azwi to mlog because many of the logrus calls use the unstructured APIs. That will be a future change.

Signed-off-by: Monis Khan [email protected]

Part of #705

Example JSON logs:

{
  "level": "info",
  "timestamp": "2023-01-23T16:16:43.450882Z",
  "logger": "controller-runtime.webhook",
  "caller": "/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/server.go:270$webhook.(*Server).Start",
  "message": "Serving webhook server",
  "host": "",
  "port": 9443
}

@enj enj requested a review from aramase as a code owner January 17, 2023 22:55
@aramase aramase changed the title Migrate proxy and webhook to mlog feat: Migrate proxy and webhook to mlog Jan 19, 2023
Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

@enj Thanks for the PR!

  1. Could you update the commit message to be semantic? feat: migrate proxy and webhook to mlog.
  2. PR needs rebase

@enj enj changed the title feat: Migrate proxy and webhook to mlog feat: migrate proxy and webhook to mlog Jan 20, 2023
@enj enj enabled auto-merge (squash) January 20, 2023 21:53
@enj enj disabled auto-merge January 20, 2023 21:54
@enj enj enabled auto-merge (squash) January 20, 2023 21:54
@enj
Copy link
Member Author

enj commented Jan 23, 2023

@enj Thanks for the PR!

1. Could you update the commit message to be semantic? `feat: migrate proxy and webhook to mlog`.

2. PR needs rebase

@aramase done, and I addressed the lint failures as well.

This is the minimal change required to migrate to mlog with a new
--log-level flag.  A future change will migrate from logr.Logger to
mlog.Logger.

This change does not migrate azwi to mlog because many of the logrus
calls use the unstructured APIs.  That will be a future change.

Signed-off-by: Monis Khan <[email protected]>
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.

None yet

2 participants