Exemplo n.º 1
0
def prepare_service(argv=[]):
    cfg.CONF(argv[1:])
    # FIXME(dhellmann): We must set up the nova.flags module in order
    # to have the RPC and DB access work correctly because we are
    # still using the Service object out of nova directly. We need to
    # move that into openstack.common.
    flags.FLAGS(argv[1:])
    log.setup()
Exemplo n.º 2
0
 def test_child_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, log.getLogger('ceilometer.foobar').getEffectiveLevel())
Exemplo n.º 3
0
 def test_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, self.log.getEffectiveLevel())
Exemplo n.º 4
0
 def test_child_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(
         logging.INFO,
         log.getLogger('ceilometer.foobar').getEffectiveLevel())
Exemplo n.º 5
0
 def test_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, self.log.getEffectiveLevel())