-
Notifications
You must be signed in to change notification settings - Fork 393
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
Conversation
@@ -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()); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting!
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.../main/java/org/apache/wicket/core/request/handler/ListenerInvocationNotAllowedException.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/wicket/core/request/handler/ListenerInvocationNotAllowedException.java
Outdated
Show resolved
Hide resolved
/** | ||
* Configure noisy Logging in Exceptions | ||
*/ | ||
private boolean loudExceptionLogging = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/settings/ExceptionSettings.java
Maybe it is a better place for this new setting ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…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>
There was a problem hiding this 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!
wicket-core/src/main/java/org/apache/wicket/settings/ExceptionSettings.java
Outdated
Show resolved
Hide resolved
...t/java/org/apache/wicket/core/request/handler/ListenerInvocationNotAllowedExceptionTest.java
Show resolved
Hide resolved
Thank you, @renoth ! |
RequestCycle logs ******* which does produce some unnecessary noise in log aggregators like Kibana