Author: hoang_to
Date: 2011-10-25 05:54:16 -0400 (Tue, 25 Oct 2011)
New Revision: 7860
Modified:
portal/trunk/component/web/resources/src/main/java/org/exoplatform/portal/application/ResourceRequestFilter.java
Log:
GTNPORTAL-2192: Show broken pipe log on Tomcat server
Modified:
portal/trunk/component/web/resources/src/main/java/org/exoplatform/portal/application/ResourceRequestFilter.java
===================================================================
---
portal/trunk/component/web/resources/src/main/java/org/exoplatform/portal/application/ResourceRequestFilter.java 2011-10-25
09:30:47 UTC (rev 7859)
+++
portal/trunk/component/web/resources/src/main/java/org/exoplatform/portal/application/ResourceRequestFilter.java 2011-10-25
09:54:16 UTC (rev 7860)
@@ -34,6 +34,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.net.SocketException;
import java.net.URLDecoder;
import java.nio.charset.Charset;
import java.util.Date;
@@ -149,8 +150,15 @@
}
catch (Exception e)
{
- log.error("Could not render css " + uri, e);
- httpResponse.setStatus(HttpServletResponse.SC_NOT_FOUND);
+ if (e instanceof SocketException)
+ {
+ //Should we print something/somewhere exception message
+ }
+ else
+ {
+ log.error("Could not render css " + uri, e);
+ httpResponse.setStatus(HttpServletResponse.SC_NOT_FOUND);
+ }
}
}
else
Show replies by date