Skip to content

Commit 4cc9dae

Browse files
committed
Print exception
1 parent 92e6439 commit 4cc9dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/iexec/worker/sms/SmsService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public Optional<TaskSecrets> fetchTaskSecrets(ContributionAuthorization contribu
6464

6565
@Recover
6666
private Optional<TaskSecrets> fetchTaskSecrets(FeignException e, ContributionAuthorization contributionAuth) {
67-
log.error("Failed to get task secrets from SMS [chainTaskId:{}, httpStatus:{}, attempts:3]",
68-
contributionAuth.getChainTaskId(), e.status());
67+
log.error("Failed to get task secrets from SMS [chainTaskId:{}, httpStatus:{}, exception:{}, attempts:3]",
68+
contributionAuth.getChainTaskId(), e.status(), e.getMessage());
6969
return Optional.empty();
7070
}
7171

@@ -110,7 +110,7 @@ public String createTeeSession(ContributionAuthorization contributionAuth) {
110110

111111
@Recover
112112
private String createTeeSession(FeignException e, ContributionAuthorization contributionAuth) {
113-
log.error("Failed to create secure session [chainTaskId:{}, attempts:3, httpStatus:{}, exception:{}]",
113+
log.error("Failed to create secure session [chainTaskId:{}, httpStatus:{}, exception:{}, attempts:3]",
114114
contributionAuth.getChainTaskId(), e.status(), e.getMessage());
115115
return "";
116116
}

0 commit comments

Comments
 (0)