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