locky 11 mesiacov pred
rodič
commit
a34d2d42dd
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Controller/Cron/CronTaskController.py

+ 2 - 2
Controller/Cron/CronTaskController.py

@@ -1361,11 +1361,11 @@ class CronCollectDataView(View):
             'www.zositech.xyz', 'smart.loocam2.com'
         ]
         for domain_name in domain_name_list:
-            url = 'https://{}/init/health-check'
+            url = 'https://{}/init/health-check'.format(domain_name)
             try:
                 requests.post(url=url, timeout=30)
             except Exception as e:
-                email_content = 'https请求域名{}出现异常!'.format(domain_name)
+                email_content = 'https请求域名{}出现异常!error_msg:{}'.format(domain_name, repr(e))
                 S3Email().faEmail(email_content, 'servers@ansjer.com')
         return response.json(0)