1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 01: syslog logging in signet-api and pim-api
**What to build:** When a request fails inside either FastCGI program — a SQL
error, a Redis error, a validation failure that returns 4xx/5xx — the reason
appears in the container's log (and in production, in syslog) with the request
path and the acting user. Today `kfcgi` detaches and stderr goes nowhere, so
these failures are invisible. Every later ticket is debugged through this.
**Blocked by:** None (can start immediately).
**Status:** ready-for-agent
- [ ] Both programs open syslog at startup (identity `signet-api` / `pim-api`) and log every `db_q`/`db_do` failure with the PostgreSQL error text
- [ ] Every non-2xx response is logged once, with method, path, user and the error string sent to the client
- [ ] In the dev container the messages are readable (`syslogd` or an equivalent log sink runs in `dev-up.sh`), and `AGENTS.md`'s build/run/test section says where to look
- [ ] `e2e.sh` still ends with "all passed"; RSS unchanged within noise