B2 fix batch: say a failed challenge record once, not once per temp file name

The store error chain carries a fresh temp file name per attempt, so the
report-once key never matched twice. Report the root cause.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 04:31:48 +02:00
commit 05881ea8d8

View file

@ -5905,8 +5905,11 @@ impl Engine {
self.report_once(
&record_key,
format!(
"Idunn could not record the {recorded} route challenge of {}: {record:#}",
current.value.target
"Idunn could not record the {recorded} route challenge of {}: {}",
current.value.target,
// The root cause only: the error chain names a fresh temp file each
// attempt, which would defeat once-per-fault.
record.root_cause()
),
);
Ok(false)