Skip to content

Commit

Permalink
Merge pull request #5509 from eclipse-ee4j/mojarra_issue_5449_reduce_…
Browse files Browse the repository at this point in the history
…logging_level_of_exception_which_is_already_rethrown

Reduce logging level of exception which is already rethrown
  • Loading branch information
BalusC authored Oct 19, 2024
2 parents fe382bd + d80db2c commit 73cdfee
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 73cdfee

Please sign in to comment.