def _sendFailure(self, fail, requestID):
        """
        Log error and then send it.

        @param fail: The failure.
        @param requestID: The request ID.
        """
        log.msg("Peer will receive following PB traceback:")
        log.err(fail)
        self._sendError(fail, requestID)

        Log error and then send it.

        @param fail: The failure.
        @param requestID: The request ID.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py