diff --git a/config.go b/config.go index 6273859..8d33dc7 100644 --- a/config.go +++ b/config.go @@ -1,4 +1,5 @@ package main +var Debug = true var clientSecret = "" var clientId = "" diff --git a/fetchdata.go b/fetchdata.go index 88b714d..8f6cced 100644 --- a/fetchdata.go +++ b/fetchdata.go @@ -28,7 +28,7 @@ func fetchData(tokenFile string) *State { cfg := apiclient.DefaultTransportConfig() t := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) - t.SetDebug(true) + t.SetDebug(Debug) client := apiclient.New(t, nil) var state = &State{