def test_cfg_logging(): r"""Test cfg_logging.""" lvl = config.get_ygg_loglevel() config.set_ygg_loglevel(lvl) os.environ['YGG_SUBPROCESS'] = 'True' lvl = config.get_ygg_loglevel() config.set_ygg_loglevel(lvl) config.cfg_logging() del os.environ['YGG_SUBPROCESS']
def debug_log(self): # pragma: debug r"""Turn on debugging.""" self.info("Setting debug_log") from yggdrasil.config import get_ygg_loglevel, set_ygg_loglevel self._old_loglevel = get_ygg_loglevel() set_ygg_loglevel('DEBUG')