Avoid logging passwords on connection events
Change-Id: I15c8c4a1177c363283281d2fed63545658eda5de
Closes-Bug: #1787214
(cherry picked from commit d9866029a2
)
This commit is contained in:
parent
03e4591fb3
commit
d03b85e9d6
|
@ -1160,7 +1160,9 @@ class Connection(object):
|
||||||
self.ensure(method, retry=retry, error_callback=_error_callback)
|
self.ensure(method, retry=retry, error_callback=_error_callback)
|
||||||
|
|
||||||
def _get_connection_info(self):
|
def _get_connection_info(self):
|
||||||
info = self.connection.info()
|
ci = self.connection.info()
|
||||||
|
info = dict([(k, ci.get(k)) for k in
|
||||||
|
['hostname', 'port', 'transport']])
|
||||||
client_port = None
|
client_port = None
|
||||||
if (self.channel and hasattr(self.channel.connection, 'sock')
|
if (self.channel and hasattr(self.channel.connection, 'sock')
|
||||||
and self.channel.connection.sock):
|
and self.channel.connection.sock):
|
||||||
|
|
Loading…
Reference in New Issue