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