about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-11-28 14:55:35 +0100
committerAlan Pearce2024-11-28 14:55:35 +0100
commit5a350395ba1163b03242a185b397cd1dbd50417b (patch)
treea3c6d90bda56e0870c82db9bddc014acf47b1953 /internal/server
parent0240a3f3d9bd8688ee630ebc6110c78f3a84e953 (diff)
downloadwebsite-5a350395ba1163b03242a185b397cd1dbd50417b.tar.lz
website-5a350395ba1163b03242a185b397cd1dbd50417b.tar.zst
website-5a350395ba1163b03242a185b397cd1dbd50417b.zip
Revert "Disable stdout request logging in production"
This reverts commit fcc59c8caff01282e45191122c9fb5bb24e89fd7.
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/server.go14
1 files 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)