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()
def test_child_log_level(self): cfg.CONF.log_level = "info" log.setup() self.assertEqual(logging.INFO, log.getLogger('ceilometer.foobar').getEffectiveLevel())
def test_log_level(self): cfg.CONF.log_level = "info" log.setup() self.assertEqual(logging.INFO, self.log.getEffectiveLevel())
def test_child_log_level(self): cfg.CONF.log_level = "info" log.setup() self.assertEqual( logging.INFO, log.getLogger('ceilometer.foobar').getEffectiveLevel())