mirror of https://github.com/k3s-io/k3s
avoid newline "\n" in the error to break log msg to 2 lines
parent
3d3d3922c2
commit
4bef8af685
|
@ -69,9 +69,8 @@ func (expBackoff *ExponentialBackoff) Update(err *error) {
|
||||||
expBackoff.lastErrorTime = time.Now()
|
expBackoff.lastErrorTime = time.Now()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (expBackoff *ExponentialBackoff) GenerateNoRetriesPermittedMsg(
|
func (expBackoff *ExponentialBackoff) GenerateNoRetriesPermittedMsg(operationName string) string {
|
||||||
operationName string) string {
|
return fmt.Sprintf("Operation for %q failed. No retries permitted until %v (durationBeforeRetry %v). Error: %q",
|
||||||
return fmt.Sprintf("Operation for %q failed. No retries permitted until %v (durationBeforeRetry %v). Error: %v",
|
|
||||||
operationName,
|
operationName,
|
||||||
expBackoff.lastErrorTime.Add(expBackoff.durationBeforeRetry),
|
expBackoff.lastErrorTime.Add(expBackoff.durationBeforeRetry),
|
||||||
expBackoff.durationBeforeRetry,
|
expBackoff.durationBeforeRetry,
|
||||||
|
|
Loading…
Reference in New Issue