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

Redirect klog to klog-gokit #248

Merged
merged 2 commits into from
Nov 25, 2019
Merged

Redirect klog to klog-gokit #248

merged 2 commits into from
Nov 25, 2019

Conversation

vsliouniaev
Copy link
Contributor

Fixes: #247

Validated by checking where klog ends up writing to by adding this

runtime.PanicHandlers[0]("Should log to stderr")

to cmd/promxy/main.go.

Before the change, the call fails because it cannot write to /tmp but it successfully logs to stderr after the change.

Looks like this happens specifically when using kubernetes service discovery from the promxy config file. This change is also in the current prometheus source: https://github.com/prometheus/prometheus/blob/master/cmd/prometheus/main.go#L328-L330

@jacksontj jacksontj merged commit 3d035a8 into jacksontj:master Nov 25, 2019
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.

Still happening: glog causes crash after a while if it cannot write to /tmp
2 participants