website: print error for demo blobserver

Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c
This commit is contained in:
mpl 2016-02-07 23:06:08 +01:00
parent 9afc57ced5
commit 88b9dc826f
1 changed files with 3 additions and 1 deletions

View File

@ -526,6 +526,7 @@ func runDemoBlobserverLoop() {
log.Printf("Killed, removed old %q container.", name)
}
for {
var stderr bytes.Buffer
cmd := exec.Command("docker", "run",
"--rm",
"--name="+name,
@ -539,9 +540,10 @@ func runDemoBlobserverLoop() {
"--openbrowser=false",
"--listen=:3179",
"--configfile="+prodSrcDir+"/website/blobserver-example/example-blobserver-config.json")
cmd.Stderr = &stderr
err := cmd.Run()
if err != nil {
log.Printf("Failed to run demo blob server: %v", err)
log.Printf("Failed to run demo blob server: %v, stderr: %v", err, stderr.String())
}
if !inProd {
return