Avoid logging passwords on connection events
Change-Id: I15c8c4a1177c363283281d2fed63545658eda5de Closes-Bug: #1787214
This commit is contained in:
parent
a4a8eef010
commit
d9866029a2
@ -1145,7 +1145,9 @@ class Connection(object):
|
||||
# connection is in a known error state. Otherwise attempting to access
|
||||
# the connection's socket while it is in an error state will cause
|
||||
# py-amqp to attempt reconnecting.
|
||||
info = self.connection.info()
|
||||
ci = self.connection.info()
|
||||
info = dict([(k, ci.get(k)) for k in
|
||||
['hostname', 'port', 'transport']])
|
||||
client_port = None
|
||||
if (not conn_error and self.channel
|
||||
and hasattr(self.channel.connection, 'sock')
|
||||
|
Loading…
x
Reference in New Issue
Block a user