Author: darran.lofthouse(a)jboss.com
Date: 2008-07-23 10:13:20 -0400 (Wed, 23 Jul 2008)
New Revision: 7897
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
Log:
[JBPAPP-988] Reduce logging level in RequestHandlerImpl when IOException thrown closing
output stream.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-07-23
14:07:19 UTC (rev 7896)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-07-23
14:13:20 UTC (rev 7897)
@@ -156,7 +156,14 @@
}
catch (IOException ioex)
{
- log.error("Cannot close output stream");
+ if (log.isTraceEnabled() == true)
+ {
+ log.trace("Cannot close output stream", ioex);
+ }
+ else
+ {
+ log.debug("Cannot close output stream");
+ }
}
}
}
@@ -204,7 +211,14 @@
}
catch (IOException ioex)
{
- log.error("Cannot close output stream");
+ if (log.isTraceEnabled() == true)
+ {
+ log.trace("Cannot close output stream", ioex);
+ }
+ else
+ {
+ log.debug("Cannot close output stream");
+ }
}
}
}
Show replies by date