def _init_in_thread(self): self.logger.info('Loading Stations()') self.stations = Stations(self.config, self.dbcentral) self.loading_stations = False self.logger.info('Done loading Stations()') if self.config.event == 'true': self.logger.info('Loading Events()') self.events = Events(self.dbcentral) self.loading_events = False self.logger.info('Done loading Events()') else: self.loading_events = False self.logger.info('READY!')