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()
|
||||
}
|
||||
|
||||
func (expBackoff *ExponentialBackoff) GenerateNoRetriesPermittedMsg(
|
||||
operationName string) string {
|
||||
return fmt.Sprintf("Operation for %q failed. No retries permitted until %v (durationBeforeRetry %v). Error: %v",
|
||||
func (expBackoff *ExponentialBackoff) GenerateNoRetriesPermittedMsg(operationName string) string {
|
||||
return fmt.Sprintf("Operation for %q failed. No retries permitted until %v (durationBeforeRetry %v). Error: %q",
|
||||
operationName,
|
||||
expBackoff.lastErrorTime.Add(expBackoff.durationBeforeRetry),
|
||||
expBackoff.durationBeforeRetry,
|
||||
|
|
Loading…
Reference in New Issue