ATT-21 at-terminal.log of fixed words; no crash dialog #7
Loading…
Reference in a new issue
No description provided.
Delete branch "ATT-21-log"
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?
Work package: https://openproject.home.romaine.life/wp/ATT-21 (part of https://openproject.home.romaine.life/wp/ATT-19)
at-terminal keeps a log of fixed words (AT-TERMINAL.md's "It keeps a log"), and a crash no longer pops a dialog.
What changes
riotermatlog.rs:at-terminal.login the config directory. Lines:start version V,program NAME(orprogram default shell),program ended with status N/without a status,exit,crash at FILE line N, andprevious run ended without saying howwhen the last run's last line wasn't an exit or a crash (a kill leaves no line of its own). Each line is a UTC timestamp and fixed words; a program name is cut to its file stem in letters, digits and._-(64 at most), so nothing from or to the terminal, and no arguments, reach it. Past 1 MiB a start keeps the newer half.main.rsstarts it with the version and the configured program;Application::exitingwritesexit;RioEvent::ChildExited(already sent, never handled) writes how the program ended; a panic hook writes the crash location and then runs the default hook (stderr).panic.rs: on Windows every panic showed aMessageBoxWdialog. Nothing of at-terminal's pops up a window; the crash is in the log instead.Tests (
atlog): every line any path writes holds only fixed words and cut-down names (an escape-laden program string included); a run that ended without saying how is noted at the next start, an exit or a crash isn't; a long log keeps its newer half; UTC timestamps (epoch, a leap day, today).Not in this PR: wiring the log into home-sync's
appLogsforlog-search(that's the home profile'smachine/state.json, once at-terminal-rio is installed by home-sync, ATT-23). The path is Rio's config directory until at-terminal's own identity lands with packaging.Checked on upstairspc (Windows): fmt, clippy
-D warnings, the workspace tests. nelsonpc builds nothing. CI covers Linux.merge-queue stopped this at
f4f60fb: conflicts with main. Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.f4f60fbcb5558f4a8eaf