From e159564a078e9e56776dff158d85777a5d14165d Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 29 Jan 2019 16:04:15 -0800 Subject: [PATCH] Update server.go --- src/productcatalogservice/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/productcatalogservice/server.go b/src/productcatalogservice/server.go index db9b1ce..c55e0af 100644 --- a/src/productcatalogservice/server.go +++ b/src/productcatalogservice/server.go @@ -82,7 +82,7 @@ func main() { if s := os.Getenv("EXTRA_LATENCY"); s != "" { v, err := time.ParseDuration(s) if err != nil { - panic("Invalid EXTRA_LATENCY var, must be time.Duration") + log.Fatalf("failed to parse EXTRA_LATENCY (%s) as time.Duration: %+v", v, err) } extraLatency = v log.Infof("extra latency enabled (duration: %v)", extraLatency)