Log k8s requests

This commit is contained in:
Ben Toogood 2020-04-23 17:56:00 +01:00
parent 616db3442a
commit bb25bd94c8
2 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,6 @@ func (k *kubernetes) namespaceExists(name string) (bool, error) {
return false, err
}
k.namespaces = namespaceList.Items
fmt.Println("HERE")
fmt.Println(k.namespaces)
}
// check if the namespace exists in the cache

View File

@ -9,6 +9,8 @@ import (
"io"
"net/http"
"net/url"
"github.com/micro/go-micro/v2/logger"
)
// Request is used to construct a http request for the k8s API.
@ -217,6 +219,7 @@ func (r *Request) Do() *Response {
}
}
logger.Debugf("[%v] %v", req.Method, req.URL.String())
res, err := r.client.Do(req)
if err != nil {
return &Response{