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

Bmm diag reduce logs #780

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jzakaryan
Copy link
Collaborator

The status in ServerComponentHealth object can be a very large string containing diagnostics information (per topic-partition offsets etc). Furthermore, in some use cases, ServerComponentHealth objects retrieved from each host are being processed and for each one the status is printed. There's no need to print it in the logs. The response is returned to the client anyway.
The change in this pull request removes the code that prints status of ServerComponentHealth. It will reduce the amount of clutter in the logs.

Important: DO NOT REPORT SECURITY ISSUES DIRECTLY ON GITHUB.
For reporting security issues and contributing security fixes,
please, email security@linkedin.com instead, as described in
the contribution guidelines.

Please, take a minute to review the contribution guidelines at:
https://github.com/linkedin/Brooklin/blob/master/CONTRIBUTING.md

@@ -92,8 +92,7 @@ public ServerComponentHealthAggregator(ZkClient zkClient, String cluster, int en
if (!errorMessage.isEmpty()) {
errorResponses.put(hostName, errorMessage);
} else {
String message = "Received REST response from the host: " + dmsUri + " with status: " + response.getStatus();
LOG.info(message);
LOG.info("Received REST response from the host: " + dmsUri);
Copy link
Collaborator

@vmaheshw vmaheshw Nov 10, 2020

Choose a reason for hiding this comment

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

Can you please add another log in debug mode printing the response, in case we need to enable and verify it?

@vmaheshw
Copy link
Collaborator

vmaheshw commented Feb 1, 2022

@jzakaryan is this PR still relevant?

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.

None yet

3 participants