You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: log silently swallowed errors instead of discarding them (#915)
* fix: log silently swallowed errors instead of discarding them
Replace bare `let _ = fallible_call()` and `.unwrap_or_default()`
patterns with explicit error logging via tracing:
- warn level: user-visible state loss (config save, reload, GC failures)
- debug level: non-actionable info (state files, network checks, lock release)
This makes failures observable in debug.log without changing control flow.
Closes#914
* fix: revert dead-code match on load_all_instances
load_all_instances() always returns Ok (errors are swallowed internally),
so the Err(e) branch was unreachable dead code. Revert to the original
unwrap_or_default() until the function is fixed to propagate errors.
* fix: log gc_stale failure on test-notification path
Mirror the change at push.rs:623 so the analogous gc_stale call on the
SendOutcome::Gone branch of the test-notification handler also logs
failures instead of silently discarding them. Issue #914 listed both
sites; this picks up the one missed by the original commit.
---------
Co-authored-by: njbrake <[email protected]>
Co-authored-by: Nathan Brake (Mozilla.ai) <[email protected]>
0 commit comments