Skip to content
Snippets Groups Projects
Commit 493ae0d8 authored by Zachary Carter's avatar Zachary Carter
Browse files

log reason for bad verifier assertion and increment statsd failure counter - issue2016

parent 4b14bf66
No related branches found
No related tags found
No related merge requests found
......@@ -104,9 +104,11 @@ function doVerification(req, resp, next) {
else if (!r || !r.success) err = "no response returned from child process";
if (err) {
statsd.increment("assertion_failure");
resp.json({"status":"failure", reason: err}); //Could be 500 or 200 OK if invalid cert
metrics.report('verify', {
result: 'failure',
reason: err,
rp: audience
});
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment