scolby33 / OCSPdash

A dashboard for the status of the top certificate authorities' OCSP responders.
MIT License
1 stars 0 forks source link

Add log monitoring for HTTP 500's #41

Open scolby33 opened 6 years ago

scolby33 commented 6 years ago

In production I want to look out for any unhandled server errors so they can be fixed. Some sort of log alerting when a 500 is issued would be nice.

cthoyt commented 6 years ago

That’s what sentry.io is for. I’ll set it up but you should get a student account with them through the github student pack

scolby33 commented 6 years ago

Hmmm either that or pushover_complete in the Flask error handler 😛

cthoyt commented 6 years ago

Stupid simple: http://flask.pocoo.org/docs/1.0/patterns/errorpages/#error-handlers

scolby33 commented 6 years ago

The question is then how to get the default handler assuming we don't want to customize it. I probably have to dig in the Flask source...

cthoyt commented 6 years ago

Just make a custom error page and suck it up