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