~bigbes/sr-ht-ecore

ref: ed3a5af7c35ef37e83608e9fb214412730535ce4 sr-ht-ecore/assets/assets.go -rw-r--r-- 14.2 KiB
f019dbe4 — Eugene Blikh 10 days ago
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.
4d7f4c4a — Eugene Blikh 10 days ago
assets: the shared hashed-asset discovery and cache policy