merlimat commented on a change in pull request #9323:
URL: https://github.com/apache/pulsar/pull/9323#discussion_r564689339



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpReadEntry.java
##########
@@ -117,6 +115,7 @@ public void readEntriesFailed(ManagedLedgerException 
exception, Object ctx) {
             if (!(exception instanceof TooManyRequestsException)) {
                 log.warn("[{}][{}] read failed from ledger at position:{} : 
{}", cursor.ledger.getName(),
                         cursor.getName(), readPosition, 
exception.getMessage());
+                log.warn("error caused by: ", exception.getCause());

Review comment:
       The last arg is always interpreted as an exception if it's of 
`Throwable` type




----------------------------------------------------------------
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.

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


Reply via email to