From 0f19f3d7c54cfe25ce8438b0df4c8792b1e5d462 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 19 Jun 2014 12:55:15 -0700 Subject: [PATCH] Remove logs and use Run instead of Start --- gotifier.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gotifier.go b/gotifier.go index ac3fc06..c4bfcdc 100644 --- a/gotifier.go +++ b/gotifier.go @@ -1,7 +1,7 @@ package gotifier import ( - "log" + //"log" "os/exec" ) @@ -15,15 +15,15 @@ type Notification struct { } func (notif Notification) Push() bool { - log.Println("Pushing notification") + //log.Println("Pushing notification") if activeCmd == nil { - log.Println("No active notification command found") + //log.Println("No active notification command found") return false } cmd := (*activeCmd).Command(notif) - cmd.Start() + cmd.Run() return true } @@ -81,13 +81,13 @@ func nonNull(vals ...string) string { } func init() { - log.Println("Initing Gotifier") + //log.Println("Initing Gotifier") for _, cmd := range notifiers { path, err := exec.LookPath(cmd.Name) if err == nil && path != "" { activeCmd = &cmd activeCmd.Path = path - log.Println("Found notifier command: " + path) + //log.Println("Found notifier command: " + path) return } }