mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Properly filter reversed logs
This commit is contained in:
parent
bac8b8fc98
commit
dbca6dec4b
|
@ -203,7 +203,7 @@ def get_service_status_color(service_name):
|
|||
|
||||
def get_journalctl_log(service_name):
|
||||
try:
|
||||
log = subprocess.check_output("journalctl -r --unit={} --no-pager | tail -n 200".format(service_name), shell=True).decode("utf8")
|
||||
log = subprocess.check_output("journalctl -r --unit={} --no-pager | head -n 200".format(service_name), shell=True).decode("utf8")
|
||||
except:
|
||||
log = "ERROR"
|
||||
return log
|
||||
|
|
Loading…
Reference in New Issue
Block a user