MCPcopy Create free account
hub / github.com/adobe/Marinus / __init__

Method __init__

python3_cron_scripts/libs3/MongoConnector.py:37–50  ·  view source on GitHub ↗

Initialize the instance

(self, config_file="", log_level=None)

Source from the content-addressed store, hash-verified

35 return logging.getLogger(__name__)
36
37 def __init__(self, config_file="", log_level=None):
38 """
39 Initialize the instance
40 """
41 self._logger = self._log()
42
43 if log_level is not None:
44 self._logger.setLevel(log_level)
45
46 if config_file != "":
47 self.mongo_config_file = config_file
48
49 m_base = MongoConnectorBase(config_file, "MongoDB", log_level)
50 self.m_connection = m_base.m_connection
51
52 def get_akamai_ips_connection(self):
53 """Returns a connection to the akamai_ips collection in MongoDB"""

Callers

nothing calls this directly

Calls 2

_logMethod · 0.95
MongoConnectorBaseClass · 0.90

Tested by

no test coverage detected