def logPrefix(self):
        """
        Transparently pass through the wrapped protocol's log prefix.
        """
        if interfaces.ILoggingContext.providedBy(self._wrappedProtocol):
            return self._wrappedProtocol.logPrefix()
        return self._wrappedProtocol.__class__.__name__

        Transparently pass through the wrapped protocol's log prefix.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/endpoints.py