From 4a16ae6d9afdefe145da427bd9c043f393ed9b39 Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Mon, 3 Dec 2018 17:57:19 +0100 Subject: [PATCH] Log info when successfully loading certificates --- cmd/adapter/adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/adapter/adapter.go b/cmd/adapter/adapter.go index 2e197498..95985b97 100644 --- a/cmd/adapter/adapter.go +++ b/cmd/adapter/adapter.go @@ -76,14 +76,14 @@ func (cmd *PrometheusAdapter) makePromClient() (prom.Client, error) { return nil, err } httpClient = prometheusCAClient - fmt.Println("successfully loaded ca file") + glog.Info("successfully loaded ca from file") } else { kubeconfigHTTPClient, err := makeKubeconfigHTTPClient(cmd.PrometheusAuthInCluster, cmd.PrometheusAuthConf) if err != nil { return nil, err } httpClient = kubeconfigHTTPClient - fmt.Println("successfully using in cluster") + glog.Info("successfully using in-cluster auth") } genericPromClient := prom.NewGenericAPIClient(httpClient, baseURL)