Tidy up (less verbosity), actual DB update for EDGEAPPS_LIST

This commit is contained in:
Paulo Truta
2021-02-17 13:34:53 +01:00
parent 2817628fef
commit 0bd61ccf75
3 changed files with 34 additions and 25 deletions
+3 -3
View File
@@ -2,7 +2,6 @@ package utils
import (
"bytes"
"fmt"
"log"
"os/exec"
@@ -18,10 +17,11 @@ func Exec(command string, args []string) string {
cmd.Stderr = &stderr
err := cmd.Run()
if err != nil {
log.Println(fmt.Sprint(err) + ": " + stderr.String())
// TODO: Deal with possibility of error in command, allow explicit error handling and return proper formatted stderr
// log.Println(fmt.Sprint(err) + ": " + stderr.String()) ... Silence...
}
log.Println("Result: " + out.String())
// log.Println("Result: " + out.String()) ... Silence ...
return out.String()