mirror of https://github.com/perkeep/perkeep.git
website: print error for demo blobserver
Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c
This commit is contained in:
parent
9afc57ced5
commit
88b9dc826f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue