Removed logs

This commit is contained in:
mitchelljfs 2018-07-14 23:04:26 -07:00
parent 4c036ab579
commit a3bb6623fd
2 changed files with 0 additions and 6 deletions

View File

@ -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)
}

View File

@ -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