Don't construct a debug message unless that channel is enabled. Takes serialize() out of the profiles.

This commit is contained in:
Mike Hearn 2011-07-06 15:25:15 +00:00
parent d37723afbf
commit 5dbd6c638b

View File

@ -121,7 +121,8 @@ public class BitcoinSerializer
out.write(header);
out.write(payload);
log.debug("Sending {} message: {}", name, bytesToHexString(header) + bytesToHexString(payload));
if (log.isDebugEnabled())
log.debug("Sending {} message: {}", name, bytesToHexString(header) + bytesToHexString(payload));
}
/**