Skip to content

Commit

Permalink
Allow logs collection to not still exist in the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Dec 17, 2019
1 parent 3c873f2 commit a3b2cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/submodules/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def open(self):
if self.logs_collection not in self.db.collection_names():
logger.warning("[mongo-logs] configured logs collection '%s' "
"does not exist in the database", self.logs_collection)
else:
self.is_connected = True
logger.info('[mongo-logs] database connection established')

self.is_connected = True
logger.info('[mongo-logs] database connection established')
except Exception as exp:
logger.error("[mongo-logs] Exception: %s", str(exp))
logger.debug("[mongo-logs] Exception type: %s", type(exp))
Expand Down

0 comments on commit a3b2cc1

Please sign in to comment.