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
pull/22701/head
ruan.lj 9 months ago
parent 74981a65c6
commit de14184b59

@ -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

Loading…
Cancel
Save