Make Debug configurable
This commit is contained in:
parent
05fc283d06
commit
dc02ec6395
@ -1,4 +1,5 @@
|
||||
package main
|
||||
|
||||
var Debug = true
|
||||
var clientSecret = ""
|
||||
var clientId = ""
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user