From de14184b59529d2960b8df5c91c92ff1025c4f14 Mon Sep 17 00:00:00 2001 From: "ruan.lj" Date: Mon, 21 Jul 2025 14:59:42 +0800 Subject: [PATCH] fix: Remove unnecessary HTTP 304 warning in apollo client. 304 means that there is no change in the configuration data. see also https://www.apolloconfig.com/#/zh/client/other-language-client-user-guide --- api/configs/remote_settings_sources/apollo/python_3x.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/configs/remote_settings_sources/apollo/python_3x.py b/api/configs/remote_settings_sources/apollo/python_3x.py index 6a5f381991..a675eb212a 100644 --- a/api/configs/remote_settings_sources/apollo/python_3x.py +++ b/api/configs/remote_settings_sources/apollo/python_3x.py @@ -27,7 +27,6 @@ def http_request(url, timeout, headers={}): return res.code, body except HTTPError as e: if e.code == 304: - logger.warning("http_request error,code is 304, maybe you should check secret") return 304, None logger.warning("http_request error,code is %d, msg is %s", e.code, e.msg) raise e