patch from sofian brabez to fix hexdump logging in sftp_client.
This commit is contained in:
parent
e56b36648d
commit
0840d8dd28
|
@ -107,7 +107,11 @@ class SFTPClient (BaseSFTP):
|
|||
from_transport = classmethod(from_transport)
|
||||
|
||||
def _log(self, level, msg, *args):
|
||||
super(SFTPClient, self)._log(level, "[chan %s] " + msg, *([ self.sock.get_name() ] + list(args)))
|
||||
if isinstance(msg, list):
|
||||
for m in msg:
|
||||
super(SFTPClient, self)._log(level, "[chan %s] " + m, *([ self.sock.get_name() ] + list(args)))
|
||||
else:
|
||||
super(SFTPClient, self)._log(level, "[chan %s] " + msg, *([ self.sock.get_name() ] + list(args)))
|
||||
|
||||
def close(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue