mirror of https://github.com/docker/docs.git
add remote addr in debug
This commit is contained in:
parent
ad33e9f388
commit
a0f5fb7394
2
api.go
2
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)
|
||||||
|
|
Loading…
Reference in New Issue