move logEvent into debug, condense output

This commit is contained in:
Bradley Cicenas
2017-03-06 00:23:44 +00:00
parent 52a3e61b92
commit 3bb48e91ae
2 changed files with 17 additions and 9 deletions

View File

@@ -151,15 +151,6 @@ func (g *Grid) dumpContainer() {
//container.widgets.Reset()
//}
func logEvent(e ui.Event) {
var s string
s += fmt.Sprintf("Type: %s\n", e.Type)
s += fmt.Sprintf("Path: %s\n", e.Path)
s += fmt.Sprintf("From: %s\n", e.From)
s += fmt.Sprintf("To: %s", e.To)
log.Debugf("new event:\n%s", s)
}
func Display(g *Grid) bool {
var menu func()