Added log.Printf to error if, format: 404 error: not found
This commit is contained in:
parent
e4134e6fd9
commit
820e7f7793
|
@ -2,6 +2,7 @@ package lambdarouter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -140,6 +141,7 @@ func (r *APIGRouter) Respond() events.APIGatewayProxyResponse {
|
||||||
status = 400
|
status = 400
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("%v error: %v", status, err.Error())
|
||||||
response.StatusCode = status
|
response.StatusCode = status
|
||||||
response.Body = string(respbody)
|
response.Body = string(respbody)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in New Issue