def main(): CONF(sys.argv[1:], project='oslo') logging.setup("oslo") with contextlib.closing(impl_zmq.ZmqProxy(CONF)) as reactor: reactor.consume_in_thread() reactor.wait()
def main(): CONF(sys.argv[1:], project='volt', version=version.version_string()) logging.setup('volt') # Use the wsgi service to serve the request from client server = wsgi.Server('volt-api') server.start(CONF.bind_port) server.wait()
def main(): conf_file = ["--config-file=/etc/volt/volt.conf"] if len(sys.argv) > 1: conf_file = sys.argv[1:] CONF(conf_file, project='volt', version=version.version_string()) logging.setup('volt') # Use the wsgi service to serve the request from client server = wsgi.Server('volt-api') server.start(CONF.bind_port) server.wait()
def prepare_service(argv=None): # gettextutils.install('volt', lazy=True) cfg.set_defaults(log.log_opts, default_log_levels=[ 'amqplib=WARN', 'qpid.messaging=INFO', 'sqlalchemy=WARN', 'keystoneclient=INFO', 'stevedore=INFO', 'eventlet.wsgi.server=WARN', 'iso8601=WARN' ]) if argv is None: argv = sys.argv cfg.CONF(argv[1:], project='volt', version=version.version_string()) log.setup('volt')
def prepare_service(argv=None): # gettextutils.install('volt', lazy=True) cfg.set_defaults(log.log_opts, default_log_levels=['amqplib=WARN', 'qpid.messaging=INFO', 'sqlalchemy=WARN', 'keystoneclient=INFO', 'stevedore=INFO', 'eventlet.wsgi.server=WARN', 'iso8601=WARN' ]) if argv is None: argv = sys.argv cfg.CONF(argv[1:], project='volt', version=version.version_string()) log.setup('volt')