Merge pull request #1161 from dotcloud/add_remote_addr_debug

Add remote addr in debug
Upstream-commit: c059785ffb95f31ba52a45c4e8831121a22e7c43
Component: engine
This commit is contained in:
Victor Vieux
2013-07-08 05:46:49 -07:00

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)