refactor: change log level from debug to info for chat log and access number jobs
This commit is contained in:
parent
3ca8c6ef73
commit
567a7612ed
@ -20,7 +20,7 @@ def clean_chat_log_job():
|
||||
@lock(lock_key='clean_chat_log_job_execute', timeout=30)
|
||||
def clean_chat_log_job_lock():
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
maxkb_logger.debug(_('start clean chat log'))
|
||||
maxkb_logger.info(_('start clean chat log'))
|
||||
now = timezone.now()
|
||||
|
||||
applications = Application.objects.all().values('id', 'clean_time')
|
||||
@ -66,7 +66,7 @@ def clean_chat_log_job_lock():
|
||||
if deleted_count < batch_size:
|
||||
break
|
||||
|
||||
maxkb_logger.debug(_('end clean chat log'))
|
||||
maxkb_logger.info(_('end clean chat log'))
|
||||
|
||||
|
||||
def run():
|
||||
|
||||
@ -22,9 +22,9 @@ def client_access_num_reset_job():
|
||||
@lock(lock_key="access_num_reset_execute", timeout=30)
|
||||
def client_access_num_reset_job_lock():
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
maxkb_logger.debug(_('start reset access_num'))
|
||||
maxkb_logger.info(_('start reset access_num'))
|
||||
QuerySet(ApplicationChatUserStats).update(intraday_access_num=0)
|
||||
maxkb_logger.debug(_('end reset access_num'))
|
||||
maxkb_logger.info(_('end reset access_num'))
|
||||
|
||||
|
||||
def run():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user