From ec62d5bc381982ff91363cbbc903a5d06e803b1e Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Wed, 16 Mar 2016 22:32:59 +0100 Subject: [PATCH] Add more logs --- network/src/main/java/io/bitsquare/p2p/P2PService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/src/main/java/io/bitsquare/p2p/P2PService.java b/network/src/main/java/io/bitsquare/p2p/P2PService.java index b9243e4f9c..a080cf0437 100644 --- a/network/src/main/java/io/bitsquare/p2p/P2PService.java +++ b/network/src/main/java/io/bitsquare/p2p/P2PService.java @@ -334,6 +334,7 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis // we get too many connection attempts. connection.setPeerType(Connection.PeerType.DIRECT_MSG_PEER); + log.debug("Try to decrypt..."); DecryptedMsgWithPubKey decryptedMsgWithPubKey = optionalEncryptionService.get().decryptAndVerify( prefixedSealedAndSignedMessage.sealedAndSigned); @@ -347,6 +348,8 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis log.info("Wrong receiverAddressMaskHash. The message is not intended for us."); } } catch (CryptoException e) { + log.warn(message.toString()); + log.warn(e.toString()); log.warn("Decryption of SealedAndSignedMessage failed. " + "That is expected if the message is not intended for us."); }