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

Add logger injection into discovery services #2667

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

goller
Copy link
Contributor

@goller goller commented Apr 28, 2017

Hey there, in this PR I updated the discovery services to take a prometheus logging interface to allow logger injection. Previously, the discovery services except k8s and triton were using the base logger.

I did this because I'm interested in using the discovery package as a library and use my own logger rather than the base logger.

@fabxc
Copy link
Contributor

fabxc commented Jun 1, 2017

Sorry about not taking a look at this earlier. There still seem to be conflicts, but LGTM in general.

@brancz
Copy link
Member

brancz commented Jun 1, 2017

Oh I completely missed this as well. I was actually looking into doing this some time soon as well. Awesome work! Greatly appreciated!

@goller
Copy link
Contributor Author

goller commented Jun 1, 2017

@fabxc right on, sorry about that. Trying to fix 'em now

@goller goller force-pushed the go-discovery-logger branch from 2962531 to 42de0ae Compare June 1, 2017 16:26
@goller
Copy link
Contributor Author

goller commented Jun 1, 2017

@fabxc conflicts resolved!

@fabxc
Copy link
Contributor

fabxc commented Jun 1, 2017

Thank you! One step closer to getting rid of globals :)

@fabxc fabxc merged commit a391156 into prometheus:master Jun 1, 2017
@goller goller deleted the go-discovery-logger branch June 1, 2017 17:25
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.

3 participants