Author: david.lloyd(a)jboss.com
Date: 2008-11-13 00:12:16 -0500 (Thu, 13 Nov 2008)
New Revision: 4663
Modified:
remoting3/trunk/api/src/main/java/org/jboss/remoting/spi/SpiUtils.java
Log:
Change the logger to be specific to handler errors
Modified: remoting3/trunk/api/src/main/java/org/jboss/remoting/spi/SpiUtils.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/remoting/spi/SpiUtils.java 2008-11-13
04:53:59 UTC (rev 4662)
+++ remoting3/trunk/api/src/main/java/org/jboss/remoting/spi/SpiUtils.java 2008-11-13
05:12:16 UTC (rev 4663)
@@ -32,9 +32,10 @@
* Utility methods for Remoting service providers.
*/
public final class SpiUtils {
+
private SpiUtils() {}
- private static final Logger log = Logger.getLogger(SpiUtils.class);
+ private static final Logger heLog =
Logger.getLogger("org.jboss.remoting.handler-errors");
/**
* Safely notify a reply handler of an exception.
@@ -46,7 +47,7 @@
try {
replyHandler.handleException(exception);
} catch (Throwable t) {
- log.debug(t, "Failed to properly handle exception");
+ heLog.debug(t, "Failed to properly handle exception");
}
}
@@ -61,7 +62,7 @@
try {
replyHandler.handleReply(reply);
} catch (Throwable t) {
- log.debug(t, "Failed to properly handle reply");
+ heLog.debug(t, "Failed to properly handle reply");
}
}
@@ -74,7 +75,7 @@
try {
replyHandler.handleCancellation();
} catch (Throwable t) {
- log.debug(t, "Failed to properly handle cancellation");
+ heLog.debug(t, "Failed to properly handle cancellation");
}
}
@@ -88,7 +89,7 @@
try {
handler.notifyCancel(requestContext);
} catch (Throwable t) {
- log.error(t, "Request cancel handler threw an exception");
+ heLog.error(t, "Request cancel handler threw an exception");
}
}
@@ -103,7 +104,7 @@
try {
handler.handleClose(closed);
} catch (Throwable t) {
- log.error(t, "Close handler threw an exception");
+ heLog.error(t, "Close handler threw an exception");
}
}
Show replies by date