示例#1
0
文件: base.py 项目: rpip/dvc
    def set_loglevel(args):
        """Sets log level from CLI arguments."""
        if args.quiet:
            logger.be_quiet()

        elif args.verbose:
            logger.be_verbose()
示例#2
0
 def tearDown(self):
     logger.logger.handlers = self.handlers
     logger.be_verbose()
     self.color_patch.stop()
示例#3
0
文件: basic_env.py 项目: rpip/dvc
 def setUp(self):
     super(TestDvcFixture, self).setUp()
     self.dvc = DvcRepo.init(self._root_dir)
     self.dvc.scm.commit("init dvc")
     logger.be_verbose()
示例#4
0
 def tearDown(self):
     logger.logger.handlers = self.handlers
     logger.be_verbose()
     self.consoleColorRemover.__exit__()
示例#5
0
 def setUp(self):
     super(TestDvc, self).setUp()
     self.dvc = Project.init(self._root_dir)
     logger.be_verbose()
示例#6
0
文件: base.py 项目: sandeep937/dvc
    def _set_loglevel(args):
        if args.quiet:
            logger.be_quiet()

        elif args.verbose:
            logger.be_verbose()