mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Don't create the log line for message dumping in NetworkConnection unless that level of debug logging is enabled. This was dominating the profiles on Android.
This commit is contained in:
parent
74152c6e70
commit
3edb242d5a
@ -249,11 +249,13 @@ public class NetworkConnection {
|
||||
}
|
||||
}
|
||||
|
||||
log.debug("Received {} byte '{}' message: {}", new Object[]{
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Received {} byte '{}' message: {}", new Object[]{
|
||||
size,
|
||||
command,
|
||||
Utils.bytesToHexString(payloadBytes)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
Message message;
|
||||
|
Loading…
Reference in New Issue
Block a user