Update celery.py

This commit is contained in:
Curtis
2019-03-12 15:41:24 -07:00
committed by GitHub
parent f38e5b0879
commit c445297357

View File

@ -238,7 +238,7 @@ def sync_source(source):
:return:
"""
function = f"{__name__}.{sys._getframe().f_code.co_name}"
function = "{}.{}".format(__name__, sys._getframe().f_code.co_name)
task_id = celery.current_task.request.id
log_data = {
"function": function,