Skip to content

Commit

Permalink
Merge pull request #21 from transferwise/log-throwable-listener-on-error
Browse files Browse the repository at this point in the history
Log throwable when StreamObserver#onError is triggered
  • Loading branch information
maxlambrecht authored Nov 26, 2019
2 parents fbae004 + 29445c1 commit 8c3866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spiffe/api/svid/X509SVIDFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void onNext(X509SVIDResponse value) {

@Override
public void onError(Throwable t) {
LOGGER.log(Level.SEVERE, String.format("Could not get SVID \n %s", t.getMessage()));
LOGGER.log(Level.SEVERE, String.format("Could not get SVID \n %s", t.getMessage()), t);
if (isRetryableError(t)) {
retryHandler.scheduleRetry(() -> registerListener(listener));
}
Expand Down

0 comments on commit 8c3866e

Please sign in to comment.