mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-08 07:06:39 +00:00
removed obsolete print commands
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
46ec3df289
commit
a0d4a9a575
@ -3,7 +3,6 @@ package util
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
@ -24,15 +23,11 @@ func InitRDDLReissuanceProcess(ctx sdk.Context, proposerAddress string, tx_unsig
|
|||||||
|
|
||||||
// Start the command in a non-blocking way
|
// Start the command in a non-blocking way
|
||||||
err := cmd.Start()
|
err := cmd.Start()
|
||||||
outstr := stdout.String()
|
|
||||||
errstr := stderr.String()
|
errstr := stderr.String()
|
||||||
if err != nil || len(errstr) > 0 {
|
if err != nil || len(errstr) > 0 {
|
||||||
fmt.Printf("Error starting command: s\n", errstr)
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = errors.New(errstr)
|
err = errors.New(errstr)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
fmt.Println("Command started in background %s\n", outstr)
|
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -48,16 +43,11 @@ func SendRDDLReissuanceResult(ctx sdk.Context, proposerAddress string, txID stri
|
|||||||
cmd.Stderr = &stderr
|
cmd.Stderr = &stderr
|
||||||
// Start the command in a non-blocking way
|
// Start the command in a non-blocking way
|
||||||
err := cmd.Start()
|
err := cmd.Start()
|
||||||
outstr := stdout.String()
|
|
||||||
errstr := stderr.String()
|
errstr := stderr.String()
|
||||||
|
|
||||||
if err != nil || len(errstr) > 0 {
|
if err != nil || len(errstr) > 0 {
|
||||||
fmt.Printf("Error starting command: s\n", errstr)
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = errors.New(errstr)
|
err = errors.New(errstr)
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
fmt.Println("Command started in background %s\n", outstr)
|
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user