@@ -194,10 +194,10 @@ LOGGING = {
},
'info': {
'level': 'INFO',
- 'class': 'logging.handlers.TimedRotatingFileHandler',
+ 'class': 'logging.handlers.RotatingFileHandler',
'filename': BASE_DIR + '/static/log/info/info.log',
+ 'maxBytes': 1024 * 1024 * 300, # 300M
'backupCount': 30,
- 'when': 'D',
'formatter': 'standard',
'encoding': 'utf-8',
@@ -82,7 +82,7 @@ def update_device_shadow(request):
uid_channel_qs = UidChannelSetModel.objects.filter(uid__uid=uid)
if uid_channel_qs.exists():
uid_channel_qs.update(voice_prompt_intelligent_mute=0, voice_prompt_status=0, voice_prompt_enter=0,
- voice_prompt_leave=0, voice_repeat_day=127)
+ voice_prompt_leave=0, voice_repeat_day=127, voice_start_time=0, voice_end_time=0, voice_start_x=0, voice_start_y =18,voice_end_x=44, voice_end_y=18,voice_direction=0)
# 删除uid_set数据
UidSetModel.objects.filter(uid=uid).delete()