add more logging

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

View File

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

View File

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

View File

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