From 88b9dc826f1879b13a13f6a5ee93e3704446fc36 Mon Sep 17 00:00:00 2001 From: mpl Date: Sun, 7 Feb 2016 23:06:08 +0100 Subject: [PATCH] website: print error for demo blobserver Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c --- website/camweb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/camweb.go b/website/camweb.go index 8cd1713fd..e3e0587b8 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -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