Browse Source

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

tags/3.2.0_alpha11
Mike khiretskiy 7 years ago
parent
commit
6e14641700
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      update/update.py

+ 3
- 0
update/update.py View File

@@ -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