]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/util/ProfileUtils.java
Add additional logging for payment address parsing
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / util / ProfileUtils.java
index e202f70af56f227d6f7b6bf61ce93af5cb14238b..5d61cab3b2f0ccd81e7b68863967e33e63e6c684 100644 (file)
@@ -30,7 +30,8 @@ public class ProfileUtils {
         IdentityKey identityKey = null;
         try {
             identityKey = new IdentityKey(Base64.getDecoder().decode(encryptedProfile.getIdentityKey()), 0);
-        } catch (InvalidKeyException ignored) {
+        } catch (InvalidKeyException e) {
+            logger.debug("Failed to decode identity key in profile, can't verify payment address", e);
         }
 
         try {
@@ -112,6 +113,7 @@ public class ProfileUtils {
         try {
             decrypted = profileCipher.decryptWithLength(encryptedPaymentAddress);
         } catch (IOException e) {
+            logger.debug("Failed to decrypt payment address", e);
             return null;
         }
 
@@ -119,6 +121,7 @@ public class ProfileUtils {
         try {
             paymentAddress = SignalServiceProtos.PaymentAddress.parseFrom(decrypted);
         } catch (InvalidProtocolBufferException e) {
+            logger.debug("Failed to parse payment address", e);
             return null;
         }