From a0f5fb7394e6d1bf96865b8ec20796e682b4505b Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 8 Jul 2013 12:45:50 +0000 Subject: [PATCH] add remote addr in debug --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index fad4e79379..c4a5222dc6 100644 --- a/api.go +++ b/api.go @@ -878,7 +878,7 @@ func createRouter(srv *Server, logging bool) (*mux.Router, error) { localMethod := method localFct := fct 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 { log.Println(r.Method, r.RequestURI)