From e1344a901bc3051de3fd0f1cbe5913ea7b53a284 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Sun, 22 Mar 2015 00:27:47 -0400 Subject: [PATCH] Setting logging to release mode in example Debug causes App Engine to fail building, output looks like this: ``` ERROR 2015-03-22 04:15:01,027 http_runtime.py:285] bad runtime process port ['[GIN-debug] GET / --> web.func\xc2\xb7001 (1 handlers)\n'] ``` Setting to ReleaseMode fixes this. --- examples/app-engine/hello.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/app-engine/hello.go b/examples/app-engine/hello.go index f5daf824..d94123dd 100644 --- a/examples/app-engine/hello.go +++ b/examples/app-engine/hello.go @@ -9,6 +9,7 @@ import ( func init() { // Starts a new Gin instance with no middle-ware r := gin.New() + gin.SetMode(gin.ReleaseMode) // Define your handlers r.GET("/", func(c *gin.Context){ @@ -20,4 +21,4 @@ func init() { // Handle all requests using net/http http.Handle("/", r) -} \ No newline at end of file +}