mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-14 19:36:35 -04:00
BE: Removal of stdout.log
This commit is contained in:
@@ -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'
|
||||
]
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user