1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-09 02:59:19 +00:00

Make debug variable public

This commit is contained in:
Darren Shepherd
2018-06-19 11:18:43 -07:00
parent fbc49a97af
commit 413808be1d
2 changed files with 10 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ const (
)
var (
debug = false
Debug = false
)
type APIBaseClientInterface interface {
@@ -346,8 +346,8 @@ func (a *APIBaseClient) Action(schemaType string, action string,
}
func init() {
debug = os.Getenv("RANCHER_CLIENT_DEBUG") == "true"
if debug {
Debug = os.Getenv("RANCHER_CLIENT_DEBUG") == "true"
if Debug {
fmt.Println("Rancher client debug on")
}
}