Skip to content

Commit b6d2e6c

Browse files
committed
Add comment
1 parent 1e9c7a7 commit b6d2e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bottlecap/src/traces/proxy_flusher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ impl Flusher {
161161
);
162162
return Ok(());
163163
} else if attempts >= FLUSH_RETRY_COUNT {
164+
// Final attempt. Log with error level and return error.
164165
let body_string = body.unwrap_or_default();
165166
error!(
166167
"PROXY_FLUSHER | Request failed with status {status} to {url}: {body_string} after {attempts} attempts"
@@ -170,6 +171,7 @@ impl Flusher {
170171
message: format!("Request failed with status {status}: {body_string}"),
171172
}));
172173
}
174+
// Not the final attempt. Log with info level and retry.
173175
info!(
174176
"PROXY_FLUSHER | Request failed with status {status} to {url}: {body:?} (attempt {attempts}/{FLUSH_RETRY_COUNT})"
175177
);

0 commit comments

Comments
 (0)