@@ -30,7 +30,7 @@ def longvideo_health_check(client, instance_id, max_wait_time=None):
try:
http_code = requests.get(health_check_url).status_code
except:
- logging.info("images is downloading")
+ logging.info(f"images is downloading ip: {ip_address}")
http_code = 0
if http_code == 200:
@@ -1,6 +1,9 @@
import os
import logging
+logging.basicConfig(level=logging.INFO,
+ format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
+ datefmt='%a, %d %b %Y %H:%M:%S')
slb_id_list = ["lb-bp1qk9mkvjtundlzz7owm", "lb-bp1pj2v06ladvgftgxcp0", "lb-bp1y63rnrb2e64whryghz"]
# 修改负载均衡权限