summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index c918c7348..426f47eee 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,8 @@ import (
"os/user"
"path/filepath"
+ "github.com/davecgh/go-spew/spew"
+
"github.com/jesseduffield/gocui"
git "gopkg.in/src-d/go-git.v4"
)
@@ -47,6 +49,14 @@ func devLog(objects ...interface{}) {
localLog("development.log", objects...)
}
+func objectLog(object interface{}) {
+ if !*debuggingFlag {
+ return
+ }
+ str := spew.Sdump(object)
+ localLog("development.log", str)
+}
+
func commandLog(objects ...interface{}) {
localLog("commands.log", objects...)
}