Skip to content

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.

3 participants