Reverse logs

This commit is contained in:
Taylor Helsper 2020-01-07 20:40:14 -06:00
parent d3ee147780
commit 7f5f1280a8

View File

@ -95,28 +95,28 @@ def page_settings():
# Get LND Status
lnd_status = ""
try:
lnd_status = subprocess.check_output("journalctl --unit=lnd --no-pager | tail -n 200", shell=True).decode("utf8")
lnd_status = subprocess.check_output("journalctl -r --unit=lnd --no-pager | tail -n 200", shell=True).decode("utf8")
except:
lnd_status = "ERROR"
# Get Tor Status
tor_status = ""
try:
tor_status = subprocess.check_output("journalctl --unit=tor@default --no-pager | tail -n 200", shell=True).decode("utf8")
tor_status = subprocess.check_output("journalctl -r --unit=tor@default --no-pager | tail -n 200", shell=True).decode("utf8")
except:
tor_status = "ERROR"
# Get Electrs Status
electrs_status = ""
try:
electrs_status = subprocess.check_output("journalctl --unit=electrs --no-pager | tail -n 200", shell=True).decode("utf8")
electrs_status = subprocess.check_output("journalctl -r --unit=electrs --no-pager | tail -n 200", shell=True).decode("utf8")
except:
electrs_status = "ERROR"
# Get Docker Image Build Status
docker_image_build_status = ""
try:
docker_image_build_status = subprocess.check_output("journalctl --unit=docker_images --no-pager | tail -n 200", shell=True).decode("utf8")
docker_image_build_status = subprocess.check_output("journalctl -r --unit=docker_images --no-pager | tail -n 200", shell=True).decode("utf8")
except:
docker_image_build_status = "ERROR"