print error to see

This commit is contained in:
martin donadieu 2019-12-03 14:51:15 +01:00
parent be0ef4e0c1
commit 7d8d8ec685

View File

@ -101,6 +101,7 @@ class LocalMongoDBConnection(Connection):
ssl=self.ssl, ssl=self.ssl,
**MONGO_OPTS) **MONGO_OPTS)
if self.login is not None and self.password is not None: if self.login is not None and self.password is not None:
print('Test connexion', self.dbname, self.login, self.password)
client[self.dbname].authenticate(self.login, self.password) client[self.dbname].authenticate(self.login, self.password)
else: else:
logger.info('Connecting to MongoDB over TLS/SSL...') logger.info('Connecting to MongoDB over TLS/SSL...')