Commit 0772312

mo khan <mo@mokhan.ca>
2025-04-28 22:00:23
feat: include host in default http log fields
1 parent 3bca1ea
Changed files (1)
pkg
pkg/log/init.go
@@ -9,6 +9,7 @@ import (
 func init() {
 	mapper.Register[*http.Request, Fields](func(r *http.Request) Fields {
 		return Fields{
+			"host":        r.URL.Host,
 			"method":      r.Method,
 			"path":        r.URL.Path,
 			"remote_host": r.RemoteAddr,