ensure http always has a logger
4 files changed, 5 insertions(+), 11 deletions(-)
M domain/content/publisher/app.go → domain/content/publisher/app.go
@@ -56,7 +56,7 @@ if err != nil { return nil, fault.Wrap(err, fmsg.With("invalid base URL")) } - mux := ihttp.NewServeMux() + mux := ihttp.NewServeMux(log.Named("http")) mux.HandleFunc("/", app.WithUserContext(app.Index)) mux.HandleFunc("/style.css", app.Style)
M domain/web/mux.go → domain/web/mux.go
@@ -79,7 +79,7 @@ return nil } func (website *Website) MakeRedirectorApp() *server.App { - mux := ihttp.NewServeMux() + mux := ihttp.NewServeMux(website.log.Named("http")) website.identity.RegisterHandlers(mux) re := regexp.MustCompile(
M domain/web/website.go → domain/web/website.go
@@ -182,7 +182,7 @@ <-firstUpdate website.identity = identity.New(cfg, log.Named("identity")) - mux := ihttp.NewServeMux() + mux := ihttp.NewServeMux(log.Named("http")) mux.HandleError(website.ErrorHandler) mux.Handle("/", website) mux.HandleFunc("/calendar", website.Calendar)