diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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...) } |