From fea93a5b7a2a7470f6b15a9c9d1ec21e5a67a5e9 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Thu, 7 May 2020 11:35:56 +0100 Subject: [PATCH] Log k8s Requests --- util/kubernetes/api/request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/kubernetes/api/request.go b/util/kubernetes/api/request.go index 92bcbed6..75456c90 100644 --- a/util/kubernetes/api/request.go +++ b/util/kubernetes/api/request.go @@ -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("[Kubernetes] %v %v", req.Method, req.URL.String()) res, err := r.client.Do(req) if err != nil { return &Response{