* OCMOSJ, ElG, Streaming: log tweaks

This commit is contained in:
zzz
2012-06-21 19:10:14 +00:00
parent 39d9a25e19
commit baa89c5bbf
8 changed files with 45 additions and 48 deletions

View File

@ -157,8 +157,8 @@ class MessageInputStream extends InputStream {
*/
public int getReadTimeout() { return _readTimeout; }
public void setReadTimeout(int timeout) {
if (_log.shouldLog(Log.INFO))
_log.info("Changing read timeout from " + _readTimeout + " to " + timeout);
if (_log.shouldLog(Log.DEBUG))
_log.debug("Changing read timeout from " + _readTimeout + " to " + timeout);
_readTimeout = timeout;
}
@ -373,7 +373,7 @@ class MessageInputStream extends InputStream {
}
}
if (_log.shouldLog(Log.DEBUG))
_log.debug("available(): " + numBytes + " " + toString());
_log.debug("available(): " + numBytes);
return numBytes;
}

View File

@ -81,8 +81,8 @@ class MessageOutputStream extends OutputStream {
}
public void setWriteTimeout(int ms) {
if (_log.shouldLog(Log.INFO))
_log.info("Changing write timeout from " + _writeTimeout + " to " + ms);
if (_log.shouldLog(Log.DEBUG))
_log.debug("Changing write timeout from " + _writeTimeout + " to " + ms);
_writeTimeout = ms;
}