Browse Source

Добавлено условие логгирования

master3.3
Mike khiretskiy 8 years ago
parent
commit
6e14641700
  1. 3
      update/update.py

3
update/update.py

@ -36,6 +36,7 @@ from calculate.lib.utils.files import (getProgPath, STDOUT, removeDir,
from calculate.lib.cl_lang import (setLocalTranslate, getLazyLocalTranslate,
RegexpLocalization, _)
import emerge_parser
import logging
from emerge_parser import EmergeParser, EmergeCommand, EmergeError, EmergeCache
setLocalTranslate('cl_update3', sys.modules[__name__])
@ -56,6 +57,8 @@ class Update:
emerge_parser.CommandExecutor.logfile = commandLog
self.color_print = get_color_print()
self.emerge_cache = EmergeCache()
if self.clVars.Get('cl_env_debug_set') == 'off':
EmergeCache.logger.logger.setLevel(logging.WARNING)
self.emerge_cache.check_list = (
self.emerge_cache.check_list +
map(emerge_parser.GitCheckvalue,

Loading…
Cancel
Save