mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Log traceback with exception
This commit is contained in:
parent
23b0b6bcaf
commit
72df2639a2
@ -1212,7 +1212,9 @@ def main():
|
|||||||
common.force_exit(1)
|
common.force_exit(1)
|
||||||
add_failed_builds_entry(failed_builds, appid, build, vcse)
|
add_failed_builds_entry(failed_builds, appid, build, vcse)
|
||||||
wikilog = str(vcse)
|
wikilog = str(vcse)
|
||||||
common.deploy_build_log_with_rsync(appid, build.versionCode, str(vcse))
|
common.deploy_build_log_with_rsync(
|
||||||
|
appid, build.versionCode, "".join(traceback.format_exc())
|
||||||
|
)
|
||||||
except FDroidException as e:
|
except FDroidException as e:
|
||||||
with open(os.path.join(log_dir, appid + '.log'), 'a+') as f:
|
with open(os.path.join(log_dir, appid + '.log'), 'a+') as f:
|
||||||
f.write('\n\n============================================================\n')
|
f.write('\n\n============================================================\n')
|
||||||
@ -1228,7 +1230,9 @@ def main():
|
|||||||
common.force_exit(1)
|
common.force_exit(1)
|
||||||
add_failed_builds_entry(failed_builds, appid, build, e)
|
add_failed_builds_entry(failed_builds, appid, build, e)
|
||||||
wikilog = e.get_wikitext()
|
wikilog = e.get_wikitext()
|
||||||
common.deploy_build_log_with_rsync(appid, build.versionCode, str(e))
|
common.deploy_build_log_with_rsync(
|
||||||
|
appid, build.versionCode, "".join(traceback.format_exc())
|
||||||
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error("Could not build app %s due to unknown error: %s" % (
|
logging.error("Could not build app %s due to unknown error: %s" % (
|
||||||
appid, traceback.format_exc()))
|
appid, traceback.format_exc()))
|
||||||
@ -1237,7 +1241,9 @@ def main():
|
|||||||
common.force_exit(1)
|
common.force_exit(1)
|
||||||
add_failed_builds_entry(failed_builds, appid, build, e)
|
add_failed_builds_entry(failed_builds, appid, build, e)
|
||||||
wikilog = str(e)
|
wikilog = str(e)
|
||||||
common.deploy_build_log_with_rsync(appid, build.versionCode, str(e))
|
common.deploy_build_log_with_rsync(
|
||||||
|
appid, build.versionCode, "".join(traceback.format_exc())
|
||||||
|
)
|
||||||
|
|
||||||
if options.wiki and wikilog:
|
if options.wiki and wikilog:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user