1
0
Fork 0

improved logging

This commit is contained in:
Christian Kühnel 2019-11-22 11:03:05 +01:00
parent 6708a6a900
commit 59e5bb8ed2

View file

@ -68,6 +68,7 @@ class ApplyPatch:
try: try:
with open(self.diff_json_path,'w') as json_file: with open(self.diff_json_path,'w') as json_file:
json.dump(diff.response, json_file, sort_keys=True, indent=4) json.dump(diff.response, json_file, sort_keys=True, indent=4)
print('Wrote diff details to "{}".'.format(self.diff_json_path))
except Exception: except Exception:
print('WARNING: could not write build/diff.json log file') print('WARNING: could not write build/diff.json log file')
self.git_hash = diff['sourceControlBaseRevision'] self.git_hash = diff['sourceControlBaseRevision']