From 47442f6c8e57a7cceb821265f848a702a87d1b98 Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Thu, 24 May 2018 10:01:09 +0200 Subject: [PATCH] Suppress "broken pipe" exceptions (MID-4559) It is questionable whether we should explicitly log these ones anyway, as are propagated upwards. Therefore lowering the priority to DEBUG. --- .../midpoint/web/util/MidPointProfilingServletFilter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/util/MidPointProfilingServletFilter.java b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/util/MidPointProfilingServletFilter.java index cb9ec9eb4ef..c81e994e350 100644 --- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/util/MidPointProfilingServletFilter.java +++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/util/MidPointProfilingServletFilter.java @@ -62,13 +62,13 @@ public void init(FilterConfig config) throws ServletException { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { - if(LOGGER.isTraceEnabled()){ + if (LOGGER.isTraceEnabled()) { long startTime = System.nanoTime(); try { chain.doFilter(request, response); } catch (IOException | ServletException | RuntimeException | Error e) { - LOGGER.error("Encountered exception: {}: {}", e.getClass().getName(), e.getMessage(), e); + LOGGER.debug("Encountered exception: {}: {}", e.getClass().getName(), e.getMessage(), e); throw e; } @@ -85,7 +85,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha try { chain.doFilter(request, response); } catch (IOException | ServletException | RuntimeException | Error e) { - LOGGER.error("Encountered exception: {}: {}", e.getClass().getName(), e.getMessage(), e); + LOGGER.debug("Encountered exception: {}: {}", e.getClass().getName(), e.getMessage(), e); throw e; } }