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

[ML] Remove usage of base action logger in ml actions #50074

Merged
merged 3 commits into from
Dec 16, 2019

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented Dec 11, 2019

GetJobStats, GetDataFrameAnalyticsStats and GetDatafeedStats are all called by the telemetry usage collector, these debug level messages can result in a lot of noise and add little value.

The default log4j configuration sets the log level to debug for the org.elasticsearch.action package, any transport actions that use the logger in the base class TransportAction will log at this level. Create a logger in the ml actions where required, using the base logger is deprecated anyway so this change removes a few warnings.

Also changed the naming from LOGGER to the more typical logger

I also checked the Transforms actions and there are no problems there.

Closes #50056

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

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

LGTM

@dimitris-athanasiou
Copy link
Contributor

Do we want to remove those? I think they're useful debug messages. It's just that they use the master logger and they end up in the wrong namespace.

@davidkyle davidkyle changed the title [ML] Remove debug logging in ml endpoints called by usage collector [ML] Remove usage of base action logger in ml actions Dec 11, 2019
@davidkyle
Copy link
Member Author

I change this PR to use a specific new logger in ml action rather than the base class logger and reverted the removal of the debug messages

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

LGTM

@davidkyle
Copy link
Member Author

@elasticmachine update branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TransportMasterNodeAction debug messages
5 participants