Merge pull request #1161 from dotcloud/add_remote_addr_debug

Add remote addr in debug
This commit is contained in:
Victor Vieux 2013-07-08 05:46:49 -07:00
Родитель ad33e9f388 a0f5fb7394
Коммит c059785ffb
1 изменённых файлов: 1 добавлений и 1 удалений

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)