Log warnings on silent JSON deserialization failures #6

Open
opened 2026-07-25 11:17:28 +00:00 by GKaszewski · 0 comments
Owner

Severity: Low

candidates_from_json and members_from_json use serde_json::from_value(v).unwrap_or_default(). If the JSON in the database is malformed, these silently return empty vectors instead of surfacing the error.

For production data integrity, this should at least log a warning when deserialization fails.

**Severity: Low** `candidates_from_json` and `members_from_json` use `serde_json::from_value(v).unwrap_or_default()`. If the JSON in the database is malformed, these silently return empty vectors instead of surfacing the error. For production data integrity, this should at least log a warning when deserialization fails.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-photos#6