Skip to content
Snippets Groups Projects
Commit 1ceb1403 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

Add bad request logging

See merge request !29
parent 12ca9187
No related branches found
No related tags found
1 merge request!29Add bad request logging
Pipeline #182461 passed
......@@ -54,6 +54,7 @@ func ksaReqHandler(ekms *kms.EKMS) http.HandlerFunc {
err := json.NewDecoder(r.Body).Decode(&kmsKeyRequest)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
logrus.Errorf("error decoding ksa key request: %s", err)
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment