method

log_error

log_error(exception)
private

This is the same logging logic as in ShowExceptions middleware. TODO Once “exceptron” is in, refactor this piece to simply re-use exceptron.