From dc02ec6395ce8e54861f9882d7ed109e7b79182e Mon Sep 17 00:00:00 2001 From: Florian Eitel Date: Sun, 11 Aug 2019 22:13:49 +0200 Subject: [PATCH] Make Debug configurable --- config.go | 1 + fetchdata.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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{