BE: Removal of stdout.log

This commit is contained in:
jokob-sk
2026-06-14 10:35:08 +10:00
parent 491225dd83
commit 76e7cc7b3d
22 changed files with 80 additions and 57 deletions

View File

@@ -26,7 +26,7 @@ def clean_log(log_file):
flask.Response: JSON response with success and message keys
"""
allowed_files = [
'app.log', 'app_front.log', 'IP_changes.log', 'stdout.log', 'stderr.log',
'app.log', 'app_front.log', 'IP_changes.log', 'stderr.log',
'app.php_errors.log', 'execution_queue.log', 'db_is_locked.log'
]

View File

@@ -812,7 +812,7 @@ def _list_resources() -> List[Dict[str, Any]]:
# Log files
log_files = [
("stdout.log", "Backend stdout log"),
("app.log", "Backend log"),
("stderr.log", "Backend stderr log"),
("app_front.log", "Frontend commands log"),
("app.php_errors.log", "PHP errors log")

View File

@@ -57,7 +57,7 @@ NOTIFICATION_LEVELS = Literal["info", "warning", "error", "alert", "interrupt"]
ALLOWED_TABLES = Literal["Devices", "Events", "Sessions", "Settings", "CurrentScan", "Online_History", "Plugins_Objects", "Plugins_History"]
ALLOWED_LOG_FILES = Literal[
"app.log", "app_front.log", "IP_changes.log", "stdout.log", "stderr.log",
"app.log", "app_front.log", "IP_changes.log", "stderr.log",
"app.php_errors.log", "execution_queue.log", "db_is_locked.log"
]