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

WICKET-7121: Make it possible to disable the noisy logs by RequestCycle #928

Merged
merged 10 commits into from
Aug 20, 2024

Conversation

renoth
Copy link
Contributor

@renoth renoth commented Jul 24, 2024

RequestCycle logs ******* which does produce some unnecessary noise in log aggregators like Kibana

@@ -52,7 +52,8 @@ private static String detail(Component component,
StringBuilder detail = new StringBuilder("Component: ").append(component.toString(false));
if (behavior != null)
{
detail.append(" Behavior: ").append(behavior.toString());
detail.append(" Behavior: ").append(behavior);
detail.append(" Path: ").append(component.getPath());
Copy link
Member

Choose a reason for hiding this comment

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

Should this be in the if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes, will fix that

Copy link
Member

Choose a reason for hiding this comment

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

Waiting!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

logExtra.warn("********************************");
logExtra.warn("Handling the following exception", e);
logExtra.warn("********************************");
logExtra.warn("###***===--- Handling the following exception ---===***###", e);
Copy link
Member

Choose a reason for hiding this comment

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

What's the problem with the asterisks in Kafka aggregators?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its the lines with **************************, they spam the log with no informational value

Copy link
Member

Choose a reason for hiding this comment

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

Let's remove the special pre/suffix for good! I can foresee the next PR suggesting to remove ###***===--- because it is weird.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i changed it to make in configurable

/**
* Configure noisy Logging in Exceptions
*/
private boolean loudExceptionLogging = true;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

renoth and others added 3 commits August 2, 2024 10:48
…er/ListenerInvocationNotAllowedException.java

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
…er/ListenerInvocationNotAllowedException.java

Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

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

I also don't see much value in the noisy logs, but the PR preserves the current behavior = > Approve!

@martin-g martin-g changed the title Small improvements in Logging WICKET-7121: Make it possible to disable the noisy logs by RequestCycle Aug 19, 2024
@martin-g martin-g merged commit a20a38c into apache:master Aug 20, 2024
3 checks passed
@martin-g
Copy link
Member

Thank you, @renoth !

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