Revert "If given --verbose, don't print the whole error log again"

This reverts commit 29ab3cf64d.
This commit is contained in:
Daniel Martí 2014-07-09 11:14:01 +02:00
parent acbbc6a973
commit d5b06ec008

View file

@ -1043,9 +1043,7 @@ def main():
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
logfile.write(str(be))
logfile.close()
reason = str(be).split('\n', 1)[0] if options.verbose else str(be)
logging.error("Could not build app %s due to BuildException: %s" % (
app['id'], reason))
print("Could not build app %s due to BuildException: %s" % (app['id'], be))
if options.stop:
sys.exit(1)
failed_apps[app['id']] = be