def __init__(self, conf): self.conf = conf self.conf.register_opts(_GENERAL_OPTIONS) self.conf.register_opts(_DRIVER_OPTIONS, group=_DRIVER_GROUP) self.driver_conf = self.conf[_DRIVER_GROUP] log.setup('zaqar')
def _wrapper(): try: logging.setup('zaqar') func() except KeyboardInterrupt: LOG.info(_(u'Terminating')) except Exception as ex: _fail(1, ex)
def __init__(self, conf): self.conf = conf self.conf.register_opts(_GENERAL_OPTIONS) self.conf.register_opts(_DRIVER_OPTIONS, group=_DRIVER_GROUP) self.driver_conf = self.conf[_DRIVER_GROUP] log.setup('zaqar') if self.conf.unreliable is None: msg = _(u'Unreliable\'s default value will be changed to False ' 'in the Kilo release. Please, make sure your deployments ' 'are working in a reliable mode or that `unreliable` is ' 'explicitly set to `True` in your configuration files.') LOG.warn(msg) self.conf.unreliable = True