mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 14:03:09 -06:00
Fix up logging
This commit is contained in:
parent
060332587d
commit
e3492942c4
|
|
@ -58,6 +58,7 @@ func makeProxy(targetURL string) (*httputil.ReverseProxy, error) {
|
|||
log.WithFields(log.Fields{
|
||||
"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()
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue