Skip to content

fix: add structured logging to frecency and stash file IO failures#785

Open
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-202606160540-misc-fixes
Open

fix: add structured logging to frecency and stash file IO failures#785
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-202606160540-misc-fixes

Conversation

@MrRealORG

Copy link
Copy Markdown

9 .catch(() => {}) calls in frecency.tsx and stash.tsx silently swallowed file IO errors. On read-only filesystems, permission errors, or full disks, these failures were completely invisible to both users and operators.

Now logs at debug level so operators can diagnose IO issues. The toast deduplication added in PR #776 enables safely upgrading these to user-visible toasts in the future.

File writes in frecency.tsx (4 sites) and stash.tsx (5 sites) silently
swallowed errors via .catch(() => {}). On read-only filesystems,
permission errors, or full disks, these failures were completely invisible.

Now logs at debug level so operators can diagnose IO issues without
noise. The toast deduplication (PR XiaomiMiMo#776) allows safely upgrading
these to user-visible toasts in the future if needed.
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