Print startup errors once and drop the fx event log (closes #359) #366

Merged
clawbot merged 2 commits from issue-359-quiet-fx-log into next 2026-11-11 22:26:52 +01:00
2 Commits
Author SHA1 Message Date
sneak 2679139492 Print a startup or shutdown error once, without fx's event log (closes #359)
check / check (push) Waiting to run
pixad builds its fx app with fx.NopLogger and runs start, wait and stop
itself, so that it can print a start or stop error to stderr once.
dig.RootCause strips the frames fx and dig wrap around the error, which
leaves the line that names the setting. The exit status is as before.

Two tests run runApp on a small fx app. A stop hook that fails has its
error printed once, with exit status 1. A shutdown request's exit code
is returned.

Model: opus-5-5
2026-11-11 21:02:37 +00:00
sneak 8aaf6dc794 Test that pixad writes only its own errors to stderr (closes #359)
Both tests run pixad as a child process. They fail against this code:
every start writes the dependency-injection library's event log to
stderr, and a startup error is printed twice inside its frames.

Model: opus-5-5
2026-11-11 21:00:24 +00:00