Commit 7383265
authored
[SVLS-8741] fix: Improve log messages for proxy flusher (#1123)
## Overview
When the status code from the proxy flusher request is not 200 or 202,
right now we log:
```
error!(
"PROXY_FLUSHER | Request failed with status {status} to {url}: {body:?}"
);
```
and do not retry.
This PR:
1. Adds retries for this type of failure, with 3 attempts in total
2. Changes the log to INFO level if it's not the final attempt. Keep
ERROR level if it failed for the final attempt.
## Testing
N/A1 parent 06798fe commit 7383265
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
165 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | | - | |
168 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
0 commit comments