Skip to content

Commit

Permalink
Reduce logging level of exception which is already rethrown -- this only
Browse files Browse the repository at this point in the history
causes duplicate logs #5449
  • Loading branch information
BalusC committed Sep 17, 2024
1 parent e85d3af commit d80db2c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,7 @@ protected ResponseWriter createResponseWriter(FacesContext context) throws IOExc
*/
protected void handleRenderException(FacesContext context, Exception e) throws IOException {

// Always log
if (LOGGER.isLoggable(SEVERE)) {
if (LOGGER.isLoggable(FINE)) {
UIViewRoot root = context.getViewRoot();
StringBuffer sb = new StringBuffer(64);
sb.append("Error Rendering View");
Expand All @@ -950,7 +949,7 @@ protected void handleRenderException(FacesContext context, Exception e) throws I
sb.append(root.getViewId());
sb.append(']');
}
LOGGER.log(SEVERE, sb.toString(), e);
LOGGER.log(FINE, sb.toString(), e);
}

if (e instanceof RuntimeException) {
Expand Down

0 comments on commit d80db2c

Please sign in to comment.