From d144592660608d1320d07ea949ad98b27564f4b5 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Sat, 22 Mar 2025 16:21:05 +0900 Subject: [PATCH] chore: Remove `ENABLE_AUDIT_LOGS` and set the `AUDIT_LOG_LEVEL` NONE --- backend/open_webui/env.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/open_webui/env.py b/backend/open_webui/env.py index 27cc3a9a4..2a327aa5d 100644 --- a/backend/open_webui/env.py +++ b/backend/open_webui/env.py @@ -414,13 +414,12 @@ if OFFLINE_MODE: #################################### # AUDIT LOGGING #################################### -ENABLE_AUDIT_LOGS = os.getenv("ENABLE_AUDIT_LOGS", "false").lower() == "true" # Where to store log file AUDIT_LOGS_FILE_PATH = f"{DATA_DIR}/audit.log" # Maximum size of a file before rotating into a new log file AUDIT_LOG_FILE_ROTATION_SIZE = os.getenv("AUDIT_LOG_FILE_ROTATION_SIZE", "10MB") # METADATA | REQUEST | REQUEST_RESPONSE -AUDIT_LOG_LEVEL = os.getenv("AUDIT_LOG_LEVEL", "REQUEST_RESPONSE").upper() +AUDIT_LOG_LEVEL = os.getenv("AUDIT_LOG_LEVEL", "NONE").upper() try: MAX_BODY_LOG_SIZE = int(os.environ.get("MAX_BODY_LOG_SIZE") or 2048) except ValueError: