mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 06:36:22 -04:00
Improve loggings
This commit is contained in:
parent
5efd69bad4
commit
4232a10f47
4 changed files with 2 additions and 15 deletions
|
@ -321,7 +321,7 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
@Override
|
||||
public void onMessage(Message message, Connection connection) {
|
||||
if (message instanceof PrefixedSealedAndSignedMessage) {
|
||||
Log.traceCall(message.toString() + "\n\tconnection=" + connection);
|
||||
Log.traceCall("\n\t" + message.toString() + "\n\tconnection=" + connection);
|
||||
// Seed nodes don't have set the encryptionService
|
||||
if (optionalEncryptionService.isPresent()) {
|
||||
try {
|
||||
|
|
|
@ -127,7 +127,7 @@ public abstract class NetworkNode implements MessageListener, ConnectionListener
|
|||
}
|
||||
|
||||
public SettableFuture<Connection> sendMessage(Connection connection, Message message) {
|
||||
Log.traceCall("message=" + message + "\n\tconnection=" + connection);
|
||||
Log.traceCall("\n\tmessage=" + message + "\n\tconnection=" + connection);
|
||||
// connection.sendMessage might take a bit (compression, write to stream), so we use a thread to not block
|
||||
ListenableFuture<Connection> future = executorService.submit(() -> {
|
||||
Thread.currentThread().setName("NetworkNode:SendMessage-to-" + connection.getUid());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue