donate-cpu-server: show crash history

This commit is contained in:
Daniel Marjamäki 2018-11-28 20:36:19 +01:00
parent ff469867e7
commit 6b4f5026f7
1 changed files with 9 additions and 0 deletions

View File

@ -114,6 +114,15 @@ def crashReport():
html += out + '\n'
break
html += '</pre>\n'
if os.path.isfile('crash-history.txt'):
html += '<h2>history</h2>\n'
html += '<pre>\n'
f = open('crash-history.txt')
html += f.read()
f.close()
html += '</pre>'
html += '</body></html>\n'
return html