f019dbe4
middleware: report panics through slog
The two log.Printf lines were the last stdlib log in ecore, and they printed a formatted sentence where every service on the instance now emits structured records — a panic report that cannot be filtered by path or grouped by route is the one log line an operator most wants to query. Through slog's default logger rather than one handed to RecoverPanics: a library has no business choosing a handler. The service installs scribe's at startup with SetDefault, and these land in the same stream, with the same masking, as its own lines.
Eugene Blikh <bigbes@gmail.com> — 2026-08-08 19:43:55 UTC
Commit f019dbe4ea3ebbac42ad4ce864dd349f7e569909 —
view raw patch
Parent(s):
9377c43a
| File | Status | + | − |
|---|---|---|---|
assets/assets.go
|
M | +1 | -1 |
middleware/middleware.go
|
M | +20 | -5 |
middleware/middleware_test.go
|
M | +25 | -16 |
pages/pages.go
|
M | +2 | -1 |