review loggers once more

This commit makes loggers like java.util.logging with fully qualified
logger name which is created by LazyLogging trait
This commit is contained in:
Evgenii Alekseev 2022-06-27 01:34:25 +03:00
parent cbbe2b01e4
commit 31f551bdf2

View File

@ -108,7 +108,7 @@ class Sources(LazyLogging):
sources_dir(Path): local path to sources
"""
instance = Sources()
Sources._check_output("git", "init", "--initial-branch", Sources.DEFAULT_BRANCH,
Sources._check_output("git", "init", "--initial-branch", instance.DEFAULT_BRANCH,
exception=None, cwd=sources_dir, logger=instance.logger)
@staticmethod
@ -126,7 +126,7 @@ class Sources(LazyLogging):
if (cache_dir := paths.cache_for(package.base)).is_dir() and cache_dir != sources_dir:
# no need to clone whole repository, just copy from cache first
shutil.copytree(cache_dir, sources_dir, dirs_exist_ok=True)
Sources.fetch(sources_dir, package.remote)
instance.fetch(sources_dir, package.remote)
if patch is None:
instance.logger.info("no patches found")