|
@@ -8,7 +8,7 @@ import time
|
|
|
from django.http import HttpResponse
|
|
|
from django.views import View
|
|
|
from redis.connection import SSLConnection
|
|
|
-
|
|
|
+from AnsjerPush.config import LOGGER
|
|
|
from Model.models import Device_Info, SceneLog, EquipmentInfo1
|
|
|
from Object.RedisObject import RedisObject
|
|
|
from Object.ResponseObject import ResponseObject
|
|
@@ -39,7 +39,9 @@ class InitView(View):
|
|
|
def health_check(request_dict):
|
|
|
try:
|
|
|
redis_obj = RedisObject()
|
|
|
+ LOGGER.info('打印1')
|
|
|
redis_obj.set_data('health_check', 1)
|
|
|
+ LOGGER.info('打印2')
|
|
|
response = ResponseObject()
|
|
|
Device_Info.objects.filter().values('id').first()
|
|
|
SceneLog.objects.filter().values('id').first()
|