ソースを参照

refactor: remove LOG_FORMAT handling for improved legacy compatibility

Manuel 3 ヶ月 前
親
コミット
eed9f29998
1 ファイル変更、0 行追加、3 行削除
  1. 0 3
      services/squid/squid_config_db_service.py

+ 0 - 3
services/squid/squid_config_db_service.py

@@ -5,7 +5,6 @@ SQUID_ENV_KEYS = {
     "SQUID_HOST",
     "SQUID_PORT",
     "SQUID_HOSTS",
-    "LOG_FORMAT",
     "SQUID_LOG",
     "SQUID_CACHE_LOG",
     "SQUID_CONFIG_PATH",
@@ -16,7 +15,6 @@ SQUID_ENV_TO_DB_FIELD = {
     "SQUID_HOST": "squid_host",
     "SQUID_PORT": "squid_port",
     "SQUID_HOSTS": "squid_hosts",
-    "LOG_FORMAT": "log_format",
     "SQUID_LOG": "squid_log",
     "SQUID_CACHE_LOG": "squid_cache_log",
     "SQUID_CONFIG_PATH": "squid_config_path",
@@ -81,7 +79,6 @@ def load_squid_config_from_db() -> dict[str, str]:
             "SQUID_HOST": str(row.squid_host or ""),
             "SQUID_PORT": str(row.squid_port or ""),
             "SQUID_HOSTS": str(row.squid_hosts or ""),
-            "LOG_FORMAT": str(row.log_format or ""),
             "SQUID_LOG": str(row.squid_log or ""),
             "SQUID_CACHE_LOG": str(row.squid_cache_log or ""),
             "SQUID_CONFIG_PATH": str(row.squid_config_path or ""),