Skip to content

Commit 0d49b2a

Browse files
pylint
1 parent 8e2506b commit 0d49b2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

amplipi/updater/asgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ class ReleaseInfo(BaseModel):
9797
except Exception as e:
9898
logger.exception(f'Error loading identity file: {e}')
9999

100+
100101
@router.get("/settings/persist_logs")
101102
def get_log_persist_state():
102103
conf_path = '/etc/systemd'
103104
config = configparser.ConfigParser(strict=False, allow_no_value=True)
104105
config.read(f'{conf_path}/journald.conf')
105106
return config.get("Journal", "Storage", fallback="") == "persistent"
106107

108+
107109
@router.post("/settings/persist_logs")
108110
def toggle_persist_logs(value: Optional[bool] = None):
109111
"""

0 commit comments

Comments
 (0)