Skip to content

Commit 8e2506b

Browse files
Remove lingering changes from app.py, ctrl.py
1 parent fb97202 commit 8e2506b

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

amplipi/app.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
import argparse
2626

27-
import configparser
2827
import logging
2928
import sys
3029

@@ -229,24 +228,6 @@ def shutdown():
229228
# start the shutdown process and returning immediately (hopeully before the shutdown process begins)
230229
Popen('sleep 1 && sudo systemctl poweroff', shell=True)
231230

232-
233-
@api.post(
234-
'/api/persist_logs',
235-
tags=["config"],
236-
response_class=Response,
237-
responses={
238-
200: {}
239-
}
240-
)
241-
def log_persistance(ctrl: Api = Depends(get_ctrl)):
242-
"""Toggles log persistance by directly changing the journald.conf and restarting the service"""
243-
try:
244-
ctrl.toggle_persist_logs()
245-
except Exception as e:
246-
logger.error("persist_logs toggle failed!")
247-
raise e
248-
249-
250231
@api.post(
251232
'/api/lms_mode', tags=['config'],
252233
response_class=Response,

amplipi/ctrl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
from enum import Enum
2626

27-
import configparser
2827
from copy import deepcopy
2928
import os # files
3029
from pathlib import Path

0 commit comments

Comments
 (0)