add more logging
This commit is contained in:
parent
93d6bae08c
commit
f308e87b15
@ -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 + '] ' +
|
||||||
|
@ -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 + '] ' +
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user