mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Improve build output situation since logging changes
This commit is contained in:
parent
995e5c84f0
commit
cb3a08ff4b
2 changed files with 11 additions and 5 deletions
|
|
@ -907,19 +907,19 @@ def main():
|
|||
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
|
||||
logfile.write(str(be))
|
||||
logfile.close()
|
||||
logging.info("Could not build app %s due to BuildException: %s" % (app['id'], be))
|
||||
print("Could not build app %s due to BuildException: %s" % (app['id'], be))
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
failed_apps[app['id']] = be
|
||||
wikilog = be.get_wikitext()
|
||||
except VCSException as vcse:
|
||||
logging.info("VCS error while building app %s: %s" % (app['id'], vcse))
|
||||
print("VCS error while building app %s: %s" % (app['id'], vcse))
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
failed_apps[app['id']] = vcse
|
||||
wikilog = str(vcse)
|
||||
except Exception as e:
|
||||
logging.info("Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc()))
|
||||
print("Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc()))
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
failed_apps[app['id']] = e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue