Skip to content

Commit bd34576

Browse files
committed
Yarn - Rewording log messages
1 parent 3d062a1 commit bd34576

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utils/retryexecutor.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"github.com/jfrog/jfrog-client-go/utils/errorutils"
87
"time"
98

9+
"github.com/jfrog/jfrog-client-go/utils/errorutils"
10+
1011
"github.com/jfrog/jfrog-client-go/utils/log"
1112
)
1213

@@ -81,7 +82,7 @@ func (runner *RetryExecutor) getTimeoutErrorMsg() string {
8182
}
8283

8384
func (runner *RetryExecutor) LogRetry(attemptNumber int, err error) {
84-
message := fmt.Sprintf("%s(Attempt %v)", runner.LogMsgPrefix, attemptNumber+1)
85+
message := fmt.Sprintf("%s(Attempt %v of %v)", runner.LogMsgPrefix, attemptNumber+1, runner.MaxRetries+1)
8586
if runner.ErrorMessage != "" {
8687
message = fmt.Sprintf("%s - %s", message, runner.ErrorMessage)
8788
}

0 commit comments

Comments
 (0)