Пример #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()
Пример #2
0
 def test_child_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, log.getLogger('ceilometer.foobar').getEffectiveLevel())
Пример #3
0
 def test_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, self.log.getEffectiveLevel())
Пример #4
0
 def test_child_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(
         logging.INFO,
         log.getLogger('ceilometer.foobar').getEffectiveLevel())
Пример #5
0
 def test_log_level(self):
     cfg.CONF.log_level = "info"
     log.setup()
     self.assertEqual(logging.INFO, self.log.getEffectiveLevel())