Exemple #1
0
    def __init__(self, conf):
        self.conf = conf
        self.conf.register_opts(_DRIVER_OPTIONS, group=_DRIVER_GROUP)
        self.driver_conf = self.conf[_DRIVER_GROUP]

        log.setup('poppy')
        LOG.debug("init bootstrap")
Exemple #2
0
    def _wrapper():
        atexit.register(_enable_echo, True)
        _enable_echo(True)

        try:
            logging.setup('poppy')
            func()
        except KeyboardInterrupt:
            LOG.info(_(u'Terminating'))
        except Exception as ex:
            _fail(1, ex)
Exemple #3
0
    def _wrapper():
        atexit.register(_enable_echo, True)
        _enable_echo(False)

        try:
            logging.setup('poppy')
            func()
        except KeyboardInterrupt:
            LOG.info(_(u'Terminating'))
        except Exception as ex:
            _fail(1, ex)