mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add remote addr in debug
This commit is contained in:
parent
ad33e9f388
commit
a0f5fb7394
1 changed files with 1 additions and 1 deletions
2
api.go
2
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue