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: change agent active status log message to debug level #1300

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

watson
Copy link
Contributor

@watson watson commented Aug 21, 2019

Previously, the agent would log the following message on the info level if active: false:

Elastic APM agent is inactive due to configuration

This proved problematic for CLI applications that ships with the agent turned off by default.

In cases where active is set to false on purpose, it shouldn't be necessary to log this message on the info level, instead we now log this more specific message on the debug level:

Elastic APM agent disabled (`active` is false)

@watson watson requested a review from Qard August 21, 2019 17:33
@watson watson self-assigned this Aug 21, 2019
@watson
Copy link
Contributor Author

watson commented Aug 21, 2019

@Qard what do you think of this change? It came up during my work on elastic/kibana#43548 because this message was logged when you for instance run Kibana from the terminal:

yarn start --help

Previously, the agent would log the following message on the info level
if `active: false`:

    Elastic APM agent is inactive due to configuration

This proved problematic for CLI applications that ships with the agent
turned off by default.

In cases where `active` is set to `false` on purpose, it shouldn't be
necessary to log this message on the info level, instead we now log this
more specific message on the debug level:

    Elastic APM agent disabled (`active` is false)
@Qard Qard merged commit 1af29e0 into elastic:master Aug 21, 2019
@watson watson deleted the inactive branch August 22, 2019 07:54
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