-
Notifications
You must be signed in to change notification settings - Fork 38.5k
ExceptionHandlerExceptionResolver started to log on WARN level [SPR-17383] #21916
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
Comments
Rossen Stoyanchev commented This was done based on #21714. The same commit shows how things were before. Even before the change, all if possible I'd prefer to keep the consistency we have after the change. After all those re single line log messages at WARN, which seems appropriate for an exception that occurred and was resolved. Are the alerts perhaps capable of differentiating between WARN vs ERROR generally, as opposed to changing individual loggers? We've other places across the framework where we may log at WARN level, in addition to the ones I mentioned above.
|
Lukas Krecan commented Usually, the logging rules in DevOps are something like this: In my opinion, resolved exceptions belong somewhere between DEBUG and INFO |
Rossen Stoyanchev commented There are plenty of WARN messages across the framework. To me they are informational for production, i.e. at INFO or above, not quite an error, and something that may or may not need solving. From a consistency point of view, at best I can see restoring the previous behavior for |
Lukas Krecan commented Restoring ExceptionHandler behavior would help, thanks |
Dale Ogilvie commented Likewise, we alert on WARN level messages. Hence the raising of #21932. |
Rossen Stoyanchev commented
|
Rossen Stoyanchev commented I have further rolled back the changes made for #21714, so that only the |
Uh oh!
There was an error while loading. Please reload this page.
Lukas Krecan opened SPR-17383 and commented
This commit changed behavior of ExceptionResolver to log exceptions on WARN.
The trouble is, that we have alerts on Exceptions in logs and by default log on INFO and above so we started to get alerts for resolved exceptions.
As a workaround, we can change log level ExceptionHandlerExceptionResolver to ERROR, but we would have to change it every microservice we upgrade to newest Spring.
Affects: 5.1.1
Issue Links:
Referenced from: commits 8e980d9, 41e6aa6, 1621125, 6ea3441
Backported to: 5.0.11, 4.3.21
The text was updated successfully, but these errors were encountered: