'clean_and_log(timeout = 0.05)
Works exactly as :meth:`pwnlib.tubes.tube.tube.clean`, but logs received
data with :meth:`pwnlib.self.info`.
Returns:
All data received
Examples:
>>> def recv(n, data=[\'\', \'hooray_data\']):
...     while data: return data.pop()
>>> t = tube()
>>> t.recv_raw      = recv
>>> t.connected_raw = lambda d: True
>>> t.fileno        = lambda: 1234
>>> with context.local(log_level=\'info\'):
...     data = t.clean_and_log() #doctest: +ELLIPSIS
[DEBUG] Received 0xb bytes:
\'hooray_data\'
>>> data
\'hooray_data\'
>>> context.clear()'

def clean_and_log(self, timeout=0.05):

    with context.local(log_level='debug'):
        return self.clean(timeout)
