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

fix: Only log healthcheck fail when LOG_LEVEL=debug is set #101

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Jul 3, 2019

What is this?

If you're running your test suite without percy started, these health check logs would be very noisy and annoying. This PR will make it so they only log if you're setting the log level to debug.

@Robdel12 Robdel12 requested a review from djones July 3, 2019 20:04
@@ -66,6 +66,11 @@ def self._get_agent_js

def self._make_dom_snapshot(page)
agent_js = self._get_agent_js

if self._is_debug?
self._logger.info { "agent_js file: #{agent_js}" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this log because it's been really helpful to know what this is while debugging various integrations with customers.

Copy link
Contributor

@djones djones left a comment

Choose a reason for hiding this comment

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

🍍 LGTM

@Robdel12 Robdel12 merged commit 08161a4 into master Jul 3, 2019
@Robdel12 Robdel12 deleted the rd/log-only-in-debug branch July 3, 2019 20:14
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.

2 participants