示例#1
0
    def test_loglevel_no_logConf(self):
        self.flags(healthnmon_log_config="dummyfile")

        try:
            log.setup()
        except Exception:
            self.assert_(True)  # raise exception
示例#2
0
    def test_loglevel_no_logConf(self):
        self.flags(healthnmon_log_config="dummyfile")

        try:
            log.setup()
        except Exception:
            self.assert_(True)  # raise exception
示例#3
0
    def setUp(self):
        super(HelperTestCase, self).setUp()
        self.flags(logging_greenthread_format_string="GTHREAD ID | "
                   "%(levelname)s | "
                   "%(gthread_id)d | "
                   "%(message)s",
                   healthnmon_log_config=self.log_config_file_path)

        logdir = 'healthnmon'
        if not os.path.exists(logdir):
            os.makedirs(logdir)

        log.setup()
示例#4
0
    def setUp(self):
        super(HelperTestCase, self).setUp()
        self.flags(logging_greenthread_format_string="GTHREAD ID | "
                                                     "%(levelname)s | "
                                                     "%(gthread_id)d | "
                                                     "%(message)s",
                   healthnmon_log_config=self.log_config_file_path)

        logdir = 'healthnmon'
        if not os.path.exists(logdir):
            os.makedirs(logdir)

        log.setup()
示例#5
0
    def test_loglevel_logConf_None(self):
        self.flags(healthnmon_log_config="")
        log.setup()

        self.assert_(True)  # do not raise exception
示例#6
0
    def test_loglevel_logConf_None(self):
        self.flags(healthnmon_log_config="")
        log.setup()

        self.assert_(True)  # do not raise exception