celery后端调整

This commit is contained in:
AKW 2023-12-13 17:25:23 +08:00
parent ab04d7fc26
commit 661b1c16e6
1 changed files with 4 additions and 0 deletions

View File

@ -1,7 +1,11 @@
from celery import shared_task from celery import shared_task
import logging
logger = logging.getLogger('apps')
@shared_task(name='save_add_contact') @shared_task(name='save_add_contact')
def save_add_contact(*args, **kwargs): def save_add_contact(*args, **kwargs):
print(args) print(args)
print(kwargs) print(kwargs)
logger.info('save_add_contact')