diff --git a/src/github.com/matrix-org/dendrite/cmd/client-api-proxy/main.go b/src/github.com/matrix-org/dendrite/cmd/client-api-proxy/main.go index 8f10c63ab..83663c527 100644 --- a/src/github.com/matrix-org/dendrite/cmd/client-api-proxy/main.go +++ b/src/github.com/matrix-org/dendrite/cmd/client-api-proxy/main.go @@ -56,8 +56,9 @@ func makeProxy(targetURL string) (*httputil.ReverseProxy, error) { path := req.URL.Path path = "api" + path log.WithFields(log.Fields{ - "path": path, - "url": targetURL, + "path": path, + "url": targetURL, + "method": req.Method, }).Print("proxying request") newURL, err := url.Parse(targetURL + path) if err != nil { @@ -113,7 +114,7 @@ func main() { fmt.Println("Proxying requests to:") fmt.Println(" /_matrix/client/r0/sync => ", *syncServerURL+"/api/_matrix/client/r0/sync") fmt.Println(" /* => ", *clientAPIURL+"/api/*") - fmt.Println("Listening on %s", *bindAddress) + fmt.Println("Listening on ", *bindAddress) srv.ListenAndServe() }