Properly filter reversed logs

This commit is contained in:
Taylor Helsper 2020-02-23 15:55:05 -06:00
parent bac8b8fc98
commit dbca6dec4b

View File

@ -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