예제 #1
0
def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    log.set_defaults()
    config.setup_logging(cfg.CONF)
    rpc.init()
예제 #2
0
파일: service.py 프로젝트: TrevorV/octavia
def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    LOG.info(_LI('Starting Octavia API server'))
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqp=WARN',
                                         'amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN',
                                         'iso8601=WARN',
                                         'paramiko=WARN',
                                         'requests=WARN',
                                         'ironic.openstack.common=WARN',
                                         ])
    config.setup_logging(cfg.CONF)
예제 #3
0
 def test_sanity(self):
     config.init([])
     config.setup_logging(cfg.CONF)
     # Resetting because this will cause inconsistent errors when run with
     # other tests
     self.addCleanup(cfg.CONF.reset)
예제 #4
0
파일: service.py 프로젝트: kaurikim/octavia
def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    log.set_defaults()
    config.setup_logging(cfg.CONF)
예제 #5
0
 def test_sanity(self):
     config.init([])
     config.setup_logging(cfg.CONF)
예제 #6
0
 def test_sanity(self):
     config.init([])
     config.setup_logging(cfg.CONF)
     # Resetting because this will cause inconsistent errors when run with
     # other tests
     self.addCleanup(cfg.CONF.reset)
예제 #7
0
 def test_sanity(self):
     config.init([])
     config.setup_logging(cfg.CONF)