Skip to content

Commit

Permalink
correct systemd service for log checking
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoexe committed Sep 26, 2024
1 parent 1d9c297 commit 2b69825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sostituzioni/view/impostazioni/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def version():
@role_required("impostazioni.write")
def log():
import subprocess
from sostituzioni.control.configurazione import SYSTEMD_SERVICE

return (
subprocess.check_output(
Expand All @@ -135,7 +136,7 @@ def log():
"--output",
"cat",
"-u",
"sostituzioni",
SYSTEMD_SERVICE,
"-n",
"1000",
"--no-pager",
Expand Down

0 comments on commit 2b69825

Please sign in to comment.