From 661b1c16e61c698461bac9cc46ddb7f6dbb58998 Mon Sep 17 00:00:00 2001 From: AKW <2497744746@qq.com> Date: Wed, 13 Dec 2023 17:25:23 +0800 Subject: [PATCH] =?UTF-8?q?celery=E5=90=8E=E7=AB=AF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jqr/tasks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/jqr/tasks.py b/apps/jqr/tasks.py index 037886d..d821cff 100644 --- a/apps/jqr/tasks.py +++ b/apps/jqr/tasks.py @@ -1,7 +1,11 @@ from celery import shared_task +import logging + +logger = logging.getLogger('apps') @shared_task(name='save_add_contact') def save_add_contact(*args, **kwargs): print(args) print(kwargs) + logger.info('save_add_contact')