add remote addr in debug

Upstream-commit: a0f5fb7394e6d1bf96865b8ec20796e682b4505b
Component: engine
This commit is contained in:
Victor Vieux
2013-07-08 12:45:50 +00:00
parent cacdb75159
commit db4a9e2ff1
+1 -1
View File
@@ -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)