Skip to content

Commit

Permalink
edit log msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilevos committed Mar 28, 2024
1 parent e3d7d98 commit bed31d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middlewares/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func Retry(config *config.Config) echo.MiddlewareFunc {
}
retryFailed := statusFromMsgRetry == 502 || c.Response().Status == http.StatusNotFound || c.Response().Status == http.StatusForbidden
if retryFailed {
c.Logger().Infof("Retry attempt http status: %d, code found in body: %d", c.Response().Status, statusFromMsgRetry)
c.Logger().Infof("Retry attempt failed, http status: %d, code found in body: %d", c.Response().Status, statusFromMsgRetry)
} else {
c.Logger().Infof("Retry attempt succeeded with http status: %d, code found in body: %d", c.Response().Status, statusFromMsgRetry)
c.Logger().Infof("Retry attempt succeeded, http status: %d, code found in body: %d", c.Response().Status, statusFromMsgRetry)
}
}

Expand Down

0 comments on commit bed31d7

Please sign in to comment.