3
0
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:
Mike Hearn 2011-05-30 15:53:34 +00:00
parent 74152c6e70
commit 3edb242d5a

View File

@ -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;