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 # Get LND Status
lnd_status = "" lnd_status = ""
try: 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: except:
lnd_status = "ERROR" lnd_status = "ERROR"
# Get Tor Status # Get Tor Status
tor_status = "" tor_status = ""
try: 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: except:
tor_status = "ERROR" tor_status = "ERROR"
# Get Electrs Status # Get Electrs Status
electrs_status = "" electrs_status = ""
try: 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: except:
electrs_status = "ERROR" electrs_status = "ERROR"
# Get Docker Image Build Status # Get Docker Image Build Status
docker_image_build_status = "" docker_image_build_status = ""
try: 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: except:
docker_image_build_status = "ERROR" docker_image_build_status = "ERROR"