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
|
# 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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user