Added log.Printf to error if, format: 404 error: not found

This commit is contained in:
mitchelljfs 2018-07-18 14:04:18 -07:00
parent e4134e6fd9
commit 820e7f7793
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package lambdarouter
import (
"encoding/json"
"log"
"net/http"
"strings"
@ -140,6 +141,7 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse {
status = 400
}
log.Printf("%v error: %v", status, err.Error())
response.StatusCode = status
response.Body = string(respbody)
return response