diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java index 0a6d4d86..2c90b851 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java @@ -199,8 +199,7 @@ public static Map verifyAndDecodeJWT(String jwt, PublicKey publi } return null; } catch (Exception ex) { - CodePushUtils.log(ex.getMessage()); - CodePushUtils.log(ex.getStackTrace().toString()); + CodePushUtils.log(ex); return null; } } @@ -218,8 +217,7 @@ public static PublicKey parsePublicKey(String stringPublicKey) { return kf.generatePublic(X509Key); } catch (Exception e) { - CodePushUtils.log(e.getMessage()); - CodePushUtils.log(e.getStackTrace().toString()); + CodePushUtils.log(e); return null; } } @@ -237,8 +235,7 @@ public static String getSignature(String folderPath) { try { return FileUtils.readFileToString(signatureFilePath); } catch (IOException e) { - CodePushUtils.log(e.getMessage()); - CodePushUtils.log(e.getStackTrace().toString()); + CodePushUtils.log(e); return null; } }