The Loader's diag log and spirelens-db's --log write the estate's log line (AHT-204) #398
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!398
Loading…
Reference in a new issue
No description provided.
Delete branch "aht-204-logline"
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/AHT-204 (one logging standard across at-home)
spirelens' two log writers now write the estate's standard log line.
What changes
Loader/LoaderMain.cs):%TEMP%\spirelens-loader-diag.logstays where it was, under the standard's "unless it already has a place" rule, so its appLogs entry is unchanged. Before, each of the 26D()calls appended{UtcNow:o} free textwith no rotation. Now each one is aRomaineLife.Loglineline with fixed wording and fields, for exampleinfo core load found loader path=...,info core initialized load=3, anderror core assembly load threw type=... error=.... Exception text is masked withLogLine.Redact. The file is opened and closed per line, so it still survives a hard crash, and it moves to.oldpast 1 MiB.SpireLens.csproj'sFetchLoglinetarget fetches romaine-life/logline at v0.1.4's commit (LoglineCommit) with git intoobj/logline/<commit>/and compilesdotnet/Logline/*.csinto the Loader only. SpireLens.dll stays one assembly. Core.dll, the hot-reloaded assembly, is untouched. The fetch pins a commit, not an archive hash, as the C build does. No take-up PR moves this pin; a newer logline means moving it here.--log(cmd/spirelens-db): before,--logredirected stdout and stderr into the file, overwrote it on every run, and timed only the first line. Now it appends standard lines throughgithub.com/romaine-life/loglinev0.1.4:ingest started, onesource ingested source=... seen= ingested= unchanged= failed= notes=line per source,ingest summary runs= warnings= took=, the backup'sbackup ok|partial|unreachable|...line with its counts, and finallyingest finishedoringest failed error=.... Warnings and error text are masked.--quietstill leaves warnings out. The console keeps its human report.spirelens-db.loginstead oflast-ingest.log, since the file now keeps every run.docs/run-database.mdis updated to match.goline moves to 1.26.1, which logline v0.1.4 requires.Goes with
spirelens-dbnow shipsspirelens-db.log.Tests:
ci-checkpassed (dotnet format and tests, go vet and tests). The Loader isn't inSpireLens.sln, so I also builtSpireLens.csprojlocally (Release,SkipModsDeploy=true; logline fetched and compiled in), and this PR's release build builds it again. A scratch run ofspirelens-db ingestandbackupwith--logwrote the expected standard lines. The game wasn't run.The design was reviewed with
tmux-strip review, which answered Fits. Its two fixes are in: the fetch pins a commit rather than an archive hash, and there is no submodule.🤖 Generated with Claude Code