Merge "mongodb, db2: do not print full URL in logs"

This commit is contained in:
Jenkins 2013-11-14 12:41:13 +00:00 committed by Gerrit Code Review
commit fe158993bb
2 changed files with 4 additions and 2 deletions

View File

@ -153,7 +153,8 @@ class ConnectionPool(object):
client = self._pool.get(pool_key)()
if client:
return client
LOG.info('connecting to MongoDB on %s', url)
LOG.info(_('Connecting to DB2 on %s'),
connection_options['nodelist'])
client = pymongo.MongoClient(
url,
safe=True)

View File

@ -155,7 +155,8 @@ class ConnectionPool(object):
client = self._pool.get(pool_key)()
if client:
return client
LOG.info('connecting to MongoDB on %s', url)
LOG.info(_('Connecting to MongoDB on %s'),
connection_options['nodelist'])
client = pymongo.MongoClient(
url,
safe=True)