def __init__(self, configPath):
    ' '
    self._continue = True
    self._eventIdData = {}
    self.config = Config(configPath)
    self._pluginCollections = [PluginCollection(self, s) for s in self.config.getPluginPaths()]
    self._sg = sg.Shotgun(self.config.getShotgunURL(), self.config.getEngineScriptName(), self.config.getEngineScriptKey(), http_proxy=self.config.getEngineProxyServer())
    self._max_conn_retries = self.config.getint('daemon', 'max_conn_retries')
    self._conn_retry_sleep = self.config.getint('daemon', 'conn_retry_sleep')
    self._fetch_interval = self.config.getint('daemon', 'fetch_interval')
    self._use_session_uuid = self.config.getboolean('shotgun', 'use_session_uuid')
    if (self.config.getLogMode() == 0):
        rootLogger = logging.getLogger()
        rootLogger.config = self.config
        _setFilePathOnLogger(rootLogger, self.config.getLogFile())
        print(self.config.getLogFile())
        self.log = logging.getLogger('engine')
        self.setEmailsOnLogger(self.log, True)
    else:
        self.log = logging.getLogger('engine')
        self.log.config = self.config
        _setFilePathOnLogger(self.log, self.config.getLogFile())
        self.setEmailsOnLogger(self.log, True)
    self.log.setLevel(self.config.getLogLevel())
    timing_log_filename = self.config.getTimingLogFile()
    if timing_log_filename:
        self.timing_logger = logging.getLogger('timing')
        self.timing_logger.setLevel(self.config.getLogLevel())
        _setFilePathOnLogger(self.timing_logger, timing_log_filename)
    else:
        self.timing_logger = None
    super(Engine, self).__init__()
def __init__(self, configPath):
    ' '
    self._continue = True
    self._eventIdData = {}
    self.config = Config(configPath)
    self._pluginCollections = [PluginCollection(self, s) for s in self.config.getPluginPaths()]
    self._sg = sg.Shotgun(self.config.getShotgunURL(), self.config.getEngineScriptName(), self.config.getEngineScriptKey(), http_proxy=self.config.getEngineProxyServer())
    self._max_conn_retries = self.config.getint('daemon', 'max_conn_retries')
    self._conn_retry_sleep = self.config.getint('daemon', 'conn_retry_sleep')
    self._fetch_interval = self.config.getint('daemon', 'fetch_interval')
    self._use_session_uuid = self.config.getboolean('shotgun', 'use_session_uuid')
    if (self.config.getLogMode() == 0):
        rootLogger = logging.getLogger()
        rootLogger.config = self.config
        _setFilePathOnLogger(rootLogger, self.config.getLogFile())
        print(self.config.getLogFile())
        self.log = logging.getLogger('engine')
        self.setEmailsOnLogger(self.log, True)
    else:
        self.log = logging.getLogger('engine')
        self.log.config = self.config
        _setFilePathOnLogger(self.log, self.config.getLogFile())
        self.setEmailsOnLogger(self.log, True)
    self.log.setLevel(self.config.getLogLevel())
    timing_log_filename = self.config.getTimingLogFile()
    if timing_log_filename:
        self.timing_logger = logging.getLogger('timing')
        self.timing_logger.setLevel(self.config.getLogLevel())
        _setFilePathOnLogger(self.timing_logger, timing_log_filename)
    else:
        self.timing_logger = None
    super(Engine, self).__init__()