Skip to content

Commit

Permalink
Fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed May 22, 2024
1 parent fa5b340 commit 59f76cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private void subscribePolicy(String serviceId) {
} catch (InterruptedException ignore) {
} catch (ExecutionException e) {
Throwable cause = e.getCause() != null ? e.getCause() : e;
logger.warn("Failed to get governance policy for " + serviceId + ", caused by " + e.getMessage(), e);
logger.warn("Failed to get governance policy for " + serviceId + ", caused by " + cause.getMessage(), cause);
} catch (TimeoutException e) {
logger.warn("Failed to get governance policy for " + serviceId + ", caused by it's timeout.");
}
Expand Down

0 comments on commit 59f76cb

Please sign in to comment.