Example #1
0
File: api.py Project: lihuiba/volt
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()
Example #2
0
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()
Example #3
0
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()
Example #4
0
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')
Example #5
0
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')