From 8c744617be4b95a65a221e6295f43ae74f4785d0 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Tue, 8 Feb 2022 13:45:41 +0100 Subject: [PATCH] Remove logging and enable command execution for GangliaSink --- sinks/gangliaSink.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sinks/gangliaSink.go b/sinks/gangliaSink.go index 403d222..a586375 100644 --- a/sinks/gangliaSink.go +++ b/sinks/gangliaSink.go @@ -4,7 +4,6 @@ import ( "encoding/json" "errors" "fmt" - "log" "strings" // "time" @@ -116,10 +115,9 @@ func (s *GangliaSink) Write(point lp.CCMetric) error { } } } - log.Print(s.gmetric_path, " ", strings.Join(argstr, " ")) - // command := exec.Command(string(GMETRIC_EXEC), strings.Join(argstr, " ")) - // command.Wait() - // _, err := command.Output() + command := exec.Command(string(GMETRIC_EXEC), strings.Join(argstr, " ")) + command.Wait() + _, err = command.Output() return err }