From 5a350395ba1163b03242a185b397cd1dbd50417b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 28 Nov 2024 14:55:35 +0100 Subject: Revert "Disable stdout request logging in production" This reverts commit fcc59c8caff01282e45191122c9fb5bb24e89fd7. --- internal/server/server.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index 269ed9e..5c92139 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -204,15 +204,11 @@ func New(runtimeConfig *Config, log *log.Logger) (*Server, error) { loggingMux.Handle("/", mux) } - if runtimeConfig.Development { - top.Handle("/", - serverHeaderHandler( - wrapHandlerWithLogging(loggingMux, log), - ), - ) - } else { - top.Handle("/", serverHeaderHandler(loggingMux)) - } + top.Handle("/", + serverHeaderHandler( + wrapHandlerWithLogging(loggingMux, log), + ), + ) top.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusNoContent) -- cgit 1.4.1