forked from I2P_Developers/i2p.i2p
* OCMOSJ, ElG, Streaming: log tweaks
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user