浏览代码

add remote addr in debug

Victor Vieux 12 年之前
父节点
当前提交
a0f5fb7394
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api.go

+ 1 - 1
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)