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

CLI logrus.WithFields fixups #1828

Merged
merged 2 commits into from
Oct 25, 2017
Merged

CLI logrus.WithFields fixups #1828

merged 2 commits into from
Oct 25, 2017

Conversation

raybejjani
Copy link
Contributor

This switches a bunch of log callsites to use logrus.WIthFields. These changes are not supposed to break anything and follow the same reasoning from #1801 The goal of these changes is to make debugging via logs easier by making our usage more consistent. Ideally, field names should be used the same way throughout the code and mean the same thing.

The most important things to review are whether the field names make sense in the context they're used, and whether we should introduce new ones to pkg/logfields/logfields.go. I'm also happy to incorporate better messages into this PR :)

@raybejjani raybejjani requested a review from a team October 24, 2017 11:17
@raybejjani raybejjani added area/daemon Impacts operation of the Cilium daemon. kind/enhancement This would improve or streamline existing functionality. labels Oct 24, 2017
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

LGTM.

@tgraf tgraf merged commit 8a5dacc into master Oct 25, 2017
@tgraf tgraf deleted the cli-log-with-fields branch October 25, 2017 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. kind/enhancement This would improve or streamline existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants