Skip to content

fix: log first-attempt revalidation failure before retry#151

Merged
neonwatty merged 2 commits intomainfrom
fix/revalidate-first-attempt-logging
Apr 19, 2026
Merged

fix: log first-attempt revalidation failure before retry#151
neonwatty merged 2 commits intomainfrom
fix/revalidate-first-attempt-logging

Conversation

@neonwatty
Copy link
Copy Markdown
Collaborator

Summary

  • Log the first-attempt revalidatePath failure with console.warn before retrying
  • Previously the outer catch discarded the error silently — transient failures were invisible unless both attempts failed
  • Enables operators to spot intermittent revalidation issues before they escalate

Context

Identified during PR #144 review by the silent-failure-hunter agent. The revalidateSafely helper retries once on failure, but only logged when the retry also failed — making transient issues completely invisible.

Test plan

  • pnpm turbo typecheck passes
  • pnpm turbo test passes
  • No functional behavior change — only adds logging

Previously the outer catch discarded the error silently — transient
revalidation failures were invisible unless both attempts failed.
Now logs at console.debug so operators can spot intermittent issues.
ESLint only allows console.warn and console.error — console.debug
is not in the allowed list.
@neonwatty neonwatty added this pull request to the merge queue Apr 19, 2026
Merged via the queue into main with commit b00d180 Apr 19, 2026
5 checks passed
@neonwatty neonwatty deleted the fix/revalidate-first-attempt-logging branch April 19, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant