Make Debug configurable

This commit is contained in:
Florian Eitel 2019-08-11 22:13:49 +02:00
parent 05fc283d06
commit dc02ec6395
Signed by: flo
GPG Key ID: 9987EAFEF6F686BB
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
package main package main
var Debug = true
var clientSecret = "" var clientSecret = ""
var clientId = "" var clientId = ""

View File

@ -28,7 +28,7 @@ func fetchData(tokenFile string) *State {
cfg := apiclient.DefaultTransportConfig() cfg := apiclient.DefaultTransportConfig()
t := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) t := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
t.SetDebug(true) t.SetDebug(Debug)
client := apiclient.New(t, nil) client := apiclient.New(t, nil)
var state = &State{ var state = &State{