mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 02:05:53 +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,
|
size,
|
||||||
command,
|
command,
|
||||||
Utils.bytesToHexString(payloadBytes)
|
Utils.bytesToHexString(payloadBytes)
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Message message;
|
Message message;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user