mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
Reverse logs
This commit is contained in:
parent
d3ee147780
commit
7f5f1280a8
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user