def initialize_environment(self): # setup logging log.init_logging() self._logger = log.logger.getChild("background_process") self._log_path_hint = _("More information can be found in ~/var/log/web.log") # Disable html request timeout if html.in_context(): html.disable_request_timeout() # Close livestatus connections inherited from the parent process sites.disconnect() super(GUIBackgroundProcess, self).initialize_environment()
def initialize_environment(self): # setup logging log.init_logging() # NOTE: We run in a subprocess! self._logger = log.logger.getChild("background-job") self._log_path_hint = _( "More information can be found in ~/var/log/web.log") # Disable html request timeout if timeout_manager: timeout_manager.disable_timeout() # Close livestatus connections inherited from the parent process sites.disconnect() super().initialize_environment()