There was an error while loading. Please reload this page.
1 parent 8e2506b commit 0d49b2aCopy full SHA for 0d49b2a
1 file changed
amplipi/updater/asgi.py
@@ -97,13 +97,15 @@ class ReleaseInfo(BaseModel):
97
except Exception as e:
98
logger.exception(f'Error loading identity file: {e}')
99
100
+
101
@router.get("/settings/persist_logs")
102
def get_log_persist_state():
103
conf_path = '/etc/systemd'
104
config = configparser.ConfigParser(strict=False, allow_no_value=True)
105
config.read(f'{conf_path}/journald.conf')
106
return config.get("Journal", "Storage", fallback="") == "persistent"
107
108
109
@router.post("/settings/persist_logs")
110
def toggle_persist_logs(value: Optional[bool] = None):
111
"""
0 commit comments