Log warnings on silent JSON deserialization failures #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
candidates_from_jsonandmembers_from_jsonuseserde_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.