mattisonchao commented on code in PR #19867:
URL: https://github.com/apache/pulsar/pull/19867#discussion_r1143416056


##########
pulsar-client-messagecrypto-bc/src/main/java/org/apache/pulsar/client/impl/crypto/MessageCryptoBc.java:
##########
@@ -314,7 +314,7 @@ private void addPublicKeyCipher(String keyName, 
CryptoKeyReader keyReader) throw
             pubKey = loadPublicKey(keyInfo.getKey());
         } catch (Exception e) {
             String msg = logCtx + "Failed to load public key " + keyName + ". 
" + e.getMessage();
-            log.error(msg);
+            log.error(msg, e);

Review Comment:
   Why we don't remove the `e.getMessage()`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to