From f283a656dc6f57f01a3ef1f049c11830dbe4cdde Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 May 2019 13:13:42 -0700 Subject: [PATCH] start honoring the debugging flag for more output Signed-off-by: Jeff Carr --- area.go | 9 ++++++++- gui.go | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/area.go b/area.go index c051a46..46b77f7 100644 --- a/area.go +++ b/area.go @@ -19,7 +19,14 @@ func makeSplashArea(custom func(int, string)) *ui.Area { makeAttributedString() Data.splashArea = ui.NewArea(myAH) - spew.Dump(Data.splashArea) + if (Data.Debug) { + spew.Dump(Data.splashArea) + log.Println("DEBUGGING", Data.Debug) + } else { + log.Println("NOT DEBUGGING", Data.Debug) + log.Println("NOT DEBUGGING", Data.Debug) + log.Println("NOT DEBUGGING", Data.Debug) + } return Data.splashArea } diff --git a/gui.go b/gui.go index 4b4fa99..e99be64 100644 --- a/gui.go +++ b/gui.go @@ -28,6 +28,7 @@ type GuiDataStructure struct { GitCommit string GoVersion string HomeDir string + Debug bool // account entry textboxes AccNick string