diff options
author | Alan Pearce | 2024-06-25 06:53:39 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-25 06:54:20 +0200 |
commit | 8df549bdce3a3fc0e3674768c2e75002673c987d (patch) | |
tree | ac718b12e77eb5f837e96df5740cc0d7f5fed0f9 /internal/server | |
parent | e4a9203bc0af96c29b40b53d32b20aefb6940e35 (diff) | |
download | website-8df549bdce3a3fc0e3674768c2e75002673c987d.tar.lz website-8df549bdce3a3fc0e3674768c2e75002673c987d.tar.zst website-8df549bdce3a3fc0e3674768c2e75002673c987d.zip |
don't log URL scheme
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/logging.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/server/logging.go b/internal/server/logging.go index 611cb41..5d607bb 100644 --- a/internal/server/logging.go +++ b/internal/server/logging.go @@ -24,10 +24,6 @@ func NewLoggingResponseWriter(w http.ResponseWriter) *LoggingResponseWriter { func wrapHandlerWithLogging(wrappedHandler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - scheme := r.URL.Scheme - if scheme == "" { - scheme = "http" - } host := r.Host lw := NewLoggingResponseWriter(w) wrappedHandler.ServeHTTP(lw, r) @@ -37,7 +33,6 @@ func wrapHandlerWithLogging(wrappedHandler http.Handler) http.Handler { statusCode := lw.statusCode log.Info( "http request", - "scheme", scheme, "method", r.Method, "status", statusCode, "host", host, |