Remove logging and enable command execution for GangliaSink

This commit is contained in:
Thomas Roehl 2022-02-08 13:45:41 +01:00
parent 9e73dcd437
commit 8c744617be

View File

@ -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
}