Bläddra i källkod

add remote addr in debug

Victor Vieux 12 år sedan
förälder
incheckning
a0f5fb7394
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      api.go

+ 1 - 1
api.go

@@ -878,7 +878,7 @@ func createRouter(srv *Server, logging bool) (*mux.Router, error) {
 			localMethod := method
 			localMethod := method
 			localFct := fct
 			localFct := fct
 			f := func(w http.ResponseWriter, r *http.Request) {
 			f := func(w http.ResponseWriter, r *http.Request) {
-				utils.Debugf("Calling %s %s", localMethod, localRoute)
+				utils.Debugf("Calling %s %s from %s", localMethod, localRoute, r.RemoteAddr)
 
 
 				if logging {
 				if logging {
 					log.Println(r.Method, r.RequestURI)
 					log.Println(r.Method, r.RequestURI)