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

Log improvements #203

Merged
merged 2 commits into from
Jun 26, 2018
Merged

Log improvements #203

merged 2 commits into from
Jun 26, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Jun 26, 2018

This PR captures the log-output from the glog package (used by some kubernetes/client-go routines) and redirects it to the zerolog Logger used by kube-arangodb.
This makes the log output a lot more readable.

In addition to that, this PR adds an operator-id field to each log message that is filled with the hash part of the pod name. This makes is possible to identify the source of the log message when using kubectl logs --selector=<some-selector-selecting-multiple-pods>

@ghost ghost assigned ewoutp Jun 26, 2018
@ghost ghost added the 2 - Working label Jun 26, 2018
@ewoutp ewoutp requested a review from neunhoef June 26, 2018 10:17
@ewoutp ewoutp changed the title Capture glog output and redirect to standard logging service Log improvements Jun 26, 2018
Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants