Skip to content

fix: change agent active status log message to debug level#1300

Merged
Qard merged 1 commit intoelastic:masterfrom
watson:inactive
Aug 21, 2019
Merged

fix: change agent active status log message to debug level#1300
Qard merged 1 commit intoelastic:masterfrom
watson:inactive

Conversation

@watson
Copy link
Copy Markdown
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
Copy Markdown
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