summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-23 13:13:42 -0700
committerJeff Carr <[email protected]>2019-05-23 13:13:42 -0700
commitf283a656dc6f57f01a3ef1f049c11830dbe4cdde (patch)
tree61ef109829a1bd09ac98a62740e46ba1fd2703de
parent7bcdefb94aa8efb853ddafdf444c9df4cf9e464e (diff)
start honoring the debugging flag for more output
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--area.go9
-rw-r--r--gui.go1
2 files changed, 9 insertions, 1 deletions
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