Skip to content

Fix and improve logging #244

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
merged 2 commits into from
Dec 17, 2019
Merged

Fix and improve logging #244

merged 2 commits into from
Dec 17, 2019

Conversation

timoreimann
Copy link
Contributor

@timoreimann timoreimann commented Dec 16, 2019

This change applies a number of improvements to the way we log:

  • Rename "node_id" field set on controller initialization to "host_id" to avoid confusion with the "node_id" we set in various gRPC endpoint implementations: the former specifies we host we run on while the latter refers to the node ID passed in from the request. The two may diverge, especially on the controller.
  • Pass existing logrus entry to waitAction to expand fields on.
  • Log methods called and returned more consistently.
  • Rename the log variable ll to the more readable log.

Timo Reimann added 2 commits December 17, 2019 01:08
This change applies a number of improvements to the way we log:

- Rename "node_id" field set on controller initialization to "host_id"
  to avoid confusion with the "node_id" we set in various gRPC endpoint
  implementations: the former specifies we host we run on while the latter
  refers to the node ID passed in from the request. The two may diverge,
  especially on the controller.
- Pass existing logrus entry to waitAction to expand fields on.
- Log methods called and returned more consistently.
@timoreimann timoreimann force-pushed the fix-and-improve-logging branch from b03fd9d to 85222ed Compare December 17, 2019 00:09
@timoreimann timoreimann merged commit 72f72f2 into master Dec 17, 2019
@timoreimann timoreimann deleted the fix-and-improve-logging branch December 17, 2019 00:15
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.

2 participants