mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 10:12:19 +01:00
Don't construct a debug message unless that channel is enabled. Takes serialize() out of the profiles.
This commit is contained in:
parent
d37723afbf
commit
5dbd6c638b
@ -121,6 +121,7 @@ public class BitcoinSerializer
|
||||
out.write(header);
|
||||
out.write(payload);
|
||||
|
||||
if (log.isDebugEnabled())
|
||||
log.debug("Sending {} message: {}", name, bytesToHexString(header) + bytesToHexString(payload));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user