fix: share startup error logs as file and add export-to-file option - #2565
fix: share startup error logs as file and add export-to-file option#2565i5hi wants to merge 1 commit into
Conversation
|
Claude finished @i5hi's task in 3m 15s —— View job Review — PR #2565: share startup error logs as file + export option
The change is sound overall: sharing logs as an attached file instead of raw text is a clear improvement, error snackbars on the init-error screen are now localized instead of hardcoded English, and all four localization keys used ( 1. Privacy: shared temp log files are never deleted
final file = File(path);
await file.writeAsString(logs.join('\n'));
try {
await SharePlus.instance.share(
ShareParams(files: [XFile(path)], subject: 'bull_logs.tsv'),
);
} finally {
if (await file.exists()) await file.delete();
}(On Android, share_plus serves the receiver from a copy in its own cache subfolder, which it clears on the next share — so deleting the source right after Minor notes
No security issues found: logs go to the app-private cache/temp directory and are shared via the platform share sheet (FileProvider on Android), and the export path unchanged from before uses the system file-save dialog. |
No description provided.