log cleanup
This commit is contained in:
@ -577,10 +577,7 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
|
|||||||
*/
|
*/
|
||||||
void propogateError(String msg, Throwable error) {
|
void propogateError(String msg, Throwable error) {
|
||||||
if (_log.shouldLog(Log.ERROR))
|
if (_log.shouldLog(Log.ERROR))
|
||||||
_log.error(getPrefix() + "Error occurred: " + msg + " - " + error.getMessage());
|
_log.error(getPrefix() + "Error occurred: " + msg, error);
|
||||||
if (_log.shouldLog(Log.ERROR))
|
|
||||||
_log.error(getPrefix() + " cause", error);
|
|
||||||
|
|
||||||
if (_sessionListener != null) _sessionListener.errorOccurred(this, msg, error);
|
if (_sessionListener != null) _sessionListener.errorOccurred(this, msg, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user