Commit 84be560c by Oleg Marshev

Log CDN request timeout with level INFO.

parent 4bd3093e
......@@ -60,8 +60,7 @@ def get_video_from_cdn(cdn_base_url, original_video_url):
try:
cdn_response = requests.get(request_url, timeout=0.5)
except RequestException as err:
log.warning("Error requesting from CDN server at %s", request_url)
log.exception(err)
log.info("Request timed out to CDN server: %s", request_url, exc_info=True)
return None
if cdn_response.status_code == 200:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment