Closed anujbiyani closed 2 years ago
Overall this looks great and complete.
Yeah I think it makes sense to have some minimal testing here, you can just implement a test logger and confirm at least that it is passed in and usable?
Thanks for the push, I think I was just being lazy. This seems like a useful test to have: 75281d3
(#177)
Looks like Appraisal has a known issue that matches the current build failure, with a possible fix+release this Friday: https://github.com/thoughtbot/appraisal/pull/184#issuecomment-884087923
This is a great PR and change @anujbiyani, thank you!
If you feel like doing any triage on other open bugs we have I would be delighted!
@SamSaffron thanks for all your work on this gem!
@SamSaffron Hi, would you mind releasing a point version with this change in? We've been waiting for this eagerly and would love to get this feature in to minimise some of the output spam.
@anujbiyani Thanks for this change!
Sure ... will post a release today.
On Tue, Aug 3, 2021 at 9:23 PM theorician @.***> wrote:
@SamSaffron https://github.com/SamSaffron Hi, would you mind releasing a point version with this change in? We've been waiting for this eagerly and would love to get this feature in to minimise some of the output spam.
@anujbiyani https://github.com/anujbiyani Thanks for this change!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/discourse/prometheus_exporter/pull/177#issuecomment-891766167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABIXIR7LJE5L5SJ4R7A4TT27GUXANCNFSM5AW2BE4Q .
logger still defaults to STDERR, so there's no change unless a user passes in their own logger
~I wasn't sure how to unit test this, doesn't seem like logger code is usually unit tested but happy to add them if you'd like!~
75281d3
(#177)I think there are three affected code paths:
bin/prometheus_exporter
I tested 1+2 as thoroughly as I could think of. For 3 I'm not sure how to test it other than launching the server (which works fine).
fixes https://github.com/discourse/prometheus_exporter/issues/83