Author: croberts
Date: 2011-08-10 15:41:37 +0000 (Wed, 10 Aug 2011)
New Revision: 4915
Modified:
trunk/mint/python/mint/session.py
Log:
Addressing BZ 728960 by suppressing the "username/password" portion of the
broker URI. It will still show the host and port in the log entry.
Modified: trunk/mint/python/mint/session.py
===================================================================
--- trunk/mint/python/mint/session.py 2011-08-09 21:21:51 UTC (rev 4914)
+++ trunk/mint/python/mint/session.py 2011-08-10 15:41:37 UTC (rev 4915)
@@ -93,7 +93,8 @@
self.qmf_session.delBroker(qmf_broker)
def __repr__(self):
- return "%s(%s)" % (self.__class__.__name__, self.broker_uris)
+ uris_without_password = [x[x.rfind("@")+1:] for x in
self.broker_uris]
+ return "%s(%s)" % (self.__class__.__name__, uris_without_password)
class MintConsole(Console):
def __init__(self, model):
Show replies by date