Skip to content

Replace silent error swallowing with debug logging#1031

Open
jwiegley wants to merge 1 commit intojohnw/review-refactor-apifrom
johnw/review-silent-errors
Open

Replace silent error swallowing with debug logging#1031
jwiegley wants to merge 1 commit intojohnw/review-refactor-apifrom
johnw/review-silent-errors

Conversation

@jwiegley
Copy link
Copy Markdown
Collaborator

@jwiegley jwiegley commented Apr 9, 2026

Convert let _ = patterns to if let Err(e) with debug_log
throughout hook handlers, preventing silent failures that made
production issues difficult to diagnose. Also hardens error
handling in virtual attribution (unwrap_or_default -> match with
continue), repository rewrite log reads, and metrics timestamp
conversion. Adds is_dummy guard to internal_db to warn when the
dummy database is used in non-test contexts.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Copy link
Copy Markdown
Collaborator Author

jwiegley commented Apr 9, 2026

@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from de93054 to 2c481e0 Compare April 9, 2026 17:28
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch 2 times, most recently from 93b3136 to a4a730d Compare April 9, 2026 20:13
@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch 2 times, most recently from 461e97a to ea06f26 Compare April 15, 2026 19:52
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch 2 times, most recently from 1338d42 to a09eb0b Compare April 15, 2026 20:15
@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from ea06f26 to 22ea859 Compare April 15, 2026 20:15
@jwiegley jwiegley marked this pull request as ready for review April 15, 2026 21:46
@jwiegley jwiegley requested a review from svarlamov April 15, 2026 21:46
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 6 additional findings.

Open in Devin Review

@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from 22ea859 to 3ba0e3d Compare April 15, 2026 22:33
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from a09eb0b to 90c6d77 Compare April 15, 2026 22:33
@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from 3ba0e3d to ade6c88 Compare April 16, 2026 06:41
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from 90c6d77 to 7c12fb9 Compare April 16, 2026 06:41
@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from e6fc162 to e70d3b2 Compare April 16, 2026 06:48
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from 7c12fb9 to b3492b6 Compare April 16, 2026 06:49
Convert `let _ =` patterns to `if let Err(e)` with debug_log
throughout hook handlers, preventing silent failures that made
production issues difficult to diagnose. Also hardens error
handling in virtual attribution (unwrap_or_default -> match with
continue), repository rewrite log reads, and metrics timestamp
conversion. Adds is_dummy guard to internal_db to warn when the
dummy database is used in non-test contexts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the johnw/review-silent-errors branch from b3492b6 to 1d44bd3 Compare April 16, 2026 20:15
@jwiegley jwiegley force-pushed the johnw/review-refactor-api branch from e70d3b2 to 0d06c80 Compare April 16, 2026 20:15
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