the flask app logger will email 500 errors