log requests in the interop client

This commit is contained in:
Marten Seemann
2020-04-14 18:50:13 +07:00
parent 7b126285ab
commit fe313fb83f

View File

@@ -5,6 +5,7 @@ import (
"crypto/tls" "crypto/tls"
"errors" "errors"
"io/ioutil" "io/ioutil"
"log"
"net" "net"
"net/http" "net/http"
"strings" "strings"
@@ -38,6 +39,8 @@ func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, errors.New("only GET requests supported") return nil, errors.New("only GET requests supported")
} }
log.Printf("Requesting %s.\n", req.URL)
r.mutex.Lock() r.mutex.Lock()
hostname := authorityAddr("https", hostnameFromRequest(req)) hostname := authorityAddr("https", hostnameFromRequest(req))
if r.clients == nil { if r.clients == nil {