fix: Achieve 100% code coverage across all environments

Python 3 was just shy of 100%. Getting it up there required some slight
modifications to the way messages are logged to wsgi.errors, but this
should not break any apps.