Add logging for internal server errors.