Skip to content

Commit ef829ef

Browse files
Call reinit at end of log toggle, reword models.py description of persist_logs
1 parent c537253 commit ef829ef

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

amplipi/ctrl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,8 @@ def toggle_persist_logs(self, value: Optional[bool] = None):
488488

489489
subprocess.run(['sudo', 'mv', f'/tmp/journald.conf.tmp', f'{conf_path}/journald.conf'], check=True)
490490
subprocess.run(['sudo', 'systemctl', 'restart', 'systemd-journald'], check=True)
491+
492+
self.reinit()
491493
except Exception as e:
492494
logger.error("persist_logs toggle failed!")
493495
raise e

amplipi/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ class Info(BaseModel):
965965
latest_release: str = Field(default='unknown', description='Latest software release available from GitHub')
966966
access_key: str = Field(default='', description='session token/API key used for authentication')
967967
lms_mode: bool = Field(default=False, description='Are we running in LMS mode?')
968-
persist_logs: bool = Field(default=False, description='Are saving logs to disc?')
968+
persist_logs: bool = Field(default=False, description='Are logs saving to disc?')
969969
serial: str = Field(default=False, description='Serial Number of this AmpliPi')
970970
expanders: List[str] = Field(default=[], description='Serial Numbers of any expanders connected to this AmpliPi')
971971
fw: List[FirmwareInfo] = Field(

0 commit comments

Comments
 (0)