Ejemplo n.º 1
0
    def test_loglevel_no_logConf(self):
        self.flags(healthnmon_log_config="dummyfile")

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

        try:
            log.setup()
        except Exception:
            self.assert_(True)  # raise exception
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 5
0
    def test_loglevel_logConf_None(self):
        self.flags(healthnmon_log_config="")
        log.setup()

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

        self.assert_(True)  # do not raise exception