Add bitcoin debug log to log file download

This commit is contained in:
Taylor Helsper 2019-10-22 08:32:13 -05:00
parent a858e22c7a
commit 31902b4437

View File

@ -342,7 +342,8 @@ def download_logs_page():
os.system("rm -rf /tmp/mynode_info/")
os.system("mkdir -p /tmp/mynode_info/")
os.system("mynode-get-quicksync-status > /tmp/mynode_info/quicksync_state.txt")
os.system("cp /usr/share/version /tmp/mynode_info/version")
os.system("cp /usr/share/mynode/version /tmp/mynode_info/version")
os.system("cp /mnt/hdd/mynode/bitcoin/debug.log /tmp/mynode_info/bitcoin_debug.log")
os.system("tar -czvf /tmp/mynode_logs.tar.gz /var/log/ /tmp/mynode_info/")
return send_from_directory(directory="/tmp/", filename="mynode_logs.tar.gz")