Author: ron.sigal(a)jboss.com
Date: 2009-04-22 23:37:32 -0400 (Wed, 22 Apr 2009)
New Revision: 5086
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/TimedOutputStream.java
Log:
JBREM-1120: Added some logging.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/TimedOutputStream.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/TimedOutputStream.java 2009-04-23
03:36:18 UTC (rev 5085)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/TimedOutputStream.java 2009-04-23
03:37:32 UTC (rev 5086)
@@ -38,12 +38,13 @@
{
timerTask = new OutputTimerTask(this);
timer.schedule(timerTask, outputTimeout);
+ if (log.isTraceEnabled()) log.trace("scheduled OutputTimerTask:
" + outputTimeout);
}
catch (IllegalStateException e)
{
timer = new Timer("TimedOutputStreamTimer", true);
timer.schedule(new OutputTimerTask(this), outputTimeout);
- log.info("scheduled OutputTimerTask: " + outputTimeout);
+ if (log.isTraceEnabled()) log.trace("scheduled OutputTimerTask:
" + outputTimeout);
}
}
}
@@ -72,11 +73,13 @@
{
timerTask = new OutputTimerTask(this);
timer.schedule(timerTask, outputTimeout);
+ if (log.isTraceEnabled()) log.trace("scheduled OutputTimerTask:
" + outputTimeout);
}
catch (IllegalStateException e)
{
timer = new Timer("TimedOutputStreamTimer", true);
- timer.schedule(new OutputTimerTask(this), outputTimeout);
+ timer.schedule(new OutputTimerTask(this), outputTimeout);
+ if (log.isTraceEnabled()) log.trace("scheduled OutputTimerTask:
" + outputTimeout);
}
}
}