Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Jul 8, 2020
1 parent 1eb029a commit 73cd752
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/deploy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ func ConfigureProxy(instance *orgv1.CheCluster, transport *http.Transport, proxy
if err != nil {
logrus.Warnf("Error when trying to get the proxy to access TLS endpoint URL: %s - %s", r.URL, err)
}
logrus.Infof("Using proxy: %s to access TLS endpoint URL: %s", theProxyUrl, r.URL)
if theProxyUrl != nil {
logrus.Infof("Using proxy: %s to access TLS endpoint URL: %s", theProxyUrl, r.URL)
} else {
logrus.Infof("Proxy isn't used to access TLS endpoint URL: %s", r.URL)
}
return theProxyUrl, err
}
}

0 comments on commit 73cd752

Please sign in to comment.