Skip to content

Commit

Permalink
Extended logging even further
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasavelin committed Jul 3, 2024
1 parent ab02723 commit c368c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ func LoggingMiddleware(next http.Handler) http.Handler {
r *http.Request,
) {
// Log the complete request URL
// Log the complete request URL and additional details
log.Printf("Request Method: %s", r.Method)
log.Printf("Request URL: %s", r.URL.String())
log.Printf("Request HTTP Version: %s", r.Proto)
log.Printf("Request Headers: %v", r.Header)
next.ServeHTTP(w, r)
})
}

0 comments on commit c368c6c

Please sign in to comment.