add more logging

This commit is contained in:
Louis Abel 2022-07-03 23:42:35 -07:00
parent 93d6bae08c
commit f308e87b15
Signed by: label
GPG Key ID: B37E62D143879B36
3 changed files with 7 additions and 4 deletions

View File

@ -1255,7 +1255,7 @@ class RepoSync:
}
try:
Shared.treeinfo_modify_write(data, imagemap)
Shared.treeinfo_modify_write(data, imagemap, self.log)
except Exception as e:
self.log.error(
'[' + Color.BOLD + Color.RED + 'FAIL' + Color.END + '] ' +
@ -1279,7 +1279,7 @@ class RepoSync:
ksdata.clear()
try:
Shared.treeinfo_modify_write(ksdata, imagemap)
Shared.treeinfo_modify_write(ksdata, imagemap, self.log)
except Exception as e:
self.log.error(
'[' + Color.BOLD + Color.RED + 'FAIL' + Color.END + '] ' +

View File

@ -813,7 +813,7 @@ class IsoBuild:
}
try:
Shared.treeinfo_modify_write(data, imagemap)
Shared.treeinfo_modify_write(data, imagemap, self.log)
except Exception as e:
self.log.error(
'[' + Color.BOLD + Color.RED + 'FAIL' + Color.END + '] ' +

View File

@ -107,7 +107,7 @@ class Shared:
ti.dump(file_path)
@staticmethod
def treeinfo_modify_write(data, imagemap):
def treeinfo_modify_write(data, imagemap, logger):
"""
Modifies a specific treeinfo with already available data. This is in
the case of modifying treeinfo for primary repos or images.
@ -211,10 +211,13 @@ class Shared:
del vari
# Set default variant
logger.info('Writing treeinfo')
ti.dump(treeinfo, main_variant=primary)
# Set discinfo
logger.info('Writing discinfo')
Shared.discinfo_write(timestamp, fullname, arch, discinfo)
# Set media.repo
logger.info('Writing media.repo')
Shared.media_repo_write(timestamp, fullname, mediarepo)
@staticmethod