Skip to content

Commit

Permalink
Add basic request logging to rest server
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffrey committed Oct 10, 2023
1 parent bb8e504 commit f5f3d42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/restserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func NamespacesHandler(s *Server, w http.ResponseWriter, r *http.Request) {
func (s *Server) restServer(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")

s.log.Println(r.Method, r.URL.Path, r.URL.Query(), r.RemoteAddr)

switch r.URL.Path {
case "/":
switch r.Method {
Expand Down

0 comments on commit f5f3d42

Please sign in to comment.