Skip to content

Commit 4677216

Browse files
authored
Merge pull request #21 from salaboy/fix-log-format
Fixing formatting in logs, when using retries this log was not working
2 parents c9c010b + 7e66abb commit 4677216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/io/dapr/durabletask/TaskOrchestrationExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ private boolean shouldRetry() {
11881188
}
11891189

11901190
private boolean shouldRetryBasedOnPolicy() {
1191-
logger.warning(this.attemptNumber + " retries out of total %d performed " + this.policy.getMaxNumberOfAttempts());
1191+
logger.warning(() -> String.format("%d retries out of total %d performed ", this.attemptNumber, this.policy.getMaxNumberOfAttempts()));
11921192

11931193
if (this.attemptNumber >= this.policy.getMaxNumberOfAttempts()) {
11941194
// Max number of attempts exceeded

0 commit comments

Comments
 (0)