Skip to content

Commit 5d908ad

Browse files
authored
Merge pull request #268 from brave/graceful-recovery-failure
Update recovery failure logging
2 parents 6fab891 + b41899d commit 5d908ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/aggregator/processing.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ fn process_one_layer(
216216
} = match recover_msgs(msgs, &key) {
217217
Ok(info) => info,
218218
Err(e) => {
219-
debug!("failed to recover {threshold_msgs_len} messages for threshold {threshold} on id {id} for tag {}: {e}", hex::encode(msg_tag));
219+
debug!(
220+
"failed to recover {threshold_msgs_len} messages for threshold {threshold} on id {id} for tag {} and parent tag {}: {e}",
221+
hex::encode(msg_tag),
222+
hex::encode(chunk.parent_msg_tag.clone().unwrap_or_default()),
223+
);
220224
if threshold_msgs_len
221225
<= parse_env_var::<usize>(
222226
TOTAL_RECOVERY_FAIL_MAX_MSGS_ENV,

0 commit comments

Comments
 (0)