From a3bb6623fd3e6796046b19fea167cfeeb4c5c438 Mon Sep 17 00:00:00 2001 From: mitchelljfs Date: Sat, 14 Jul 2018 23:04:26 -0700 Subject: [PATCH] Removed logs --- router.go | 4 ---- router_test.go | 2 -- 2 files changed, 6 deletions(-) diff --git a/router.go b/router.go index 52545fc..d42054b 100644 --- a/router.go +++ b/router.go @@ -2,7 +2,6 @@ package lambdarouter import ( "encoding/json" - "log" "net/http" "strings" @@ -101,7 +100,6 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse { path = strings.TrimPrefix(r.request.Path, "/"+r.svcprefix) response = events.APIGatewayProxyResponse{} ) - log.Printf("path: %+v", path) for k := range r.params { p := strings.TrimPrefix(k, "{") @@ -110,7 +108,6 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse { path = strings.Replace(path, r.request.PathParameters[p], k, -1) } } - log.Printf("path: %+v", path) if handlerInterface, ok = endpointTree.Get(path); !ok { respbody, _ := json.Marshal(map[string]string{"error": "no route matching path found"}) @@ -176,5 +173,4 @@ func (r *APIGRouter) addEndpoint(method string, route string, handler APIGHandle } } - log.Printf("endpoint: %+v %+v", method, route) } diff --git a/router_test.go b/router_test.go index ceaf452..c1c23fa 100644 --- a/router_test.go +++ b/router_test.go @@ -2,7 +2,6 @@ package lambdarouter import ( "errors" - "log" "net/http" "testing" @@ -18,7 +17,6 @@ func TestRouterSpec(t *testing.T) { Convey("When the handler func does NOT return an error", func() { hdlrfunc := func(req *APIGRequest, res *APIGResponse) { - log.Printf("claims: %+v", req.Claims) res.Status = http.StatusOK res.Body = []byte("hello") res.Err = nil