mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +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
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue