diff --git a/internal/handler/site/handler.go b/internal/handler/site/handler.go index 731442b..0331043 100644 --- a/internal/handler/site/handler.go +++ b/internal/handler/site/handler.go @@ -137,10 +137,8 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { h.logger.Debug("resolved site", zap.String("site", handler.ID())) entry := middleware.GetLogEntry(r) - if entry != nil { - e := entry.(*httputil.LogEntry) - e.Logger = e.Logger.With(zap.String("site", handler.ID())) - } + e := entry.(*httputil.LogEntry) + e.Logger = e.Logger.With(zap.String("site", handler.ID())) if err := h.checkAuthz(r, handler); err != nil { http.NotFound(w, r)