mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 02:08:12 +08:00
Log id returned by broker
This will make it easy to inspect broker directly for particular message.
This commit is contained in:
+2
-1
@@ -48,7 +48,8 @@ def async(func, *args, **kwargs):
|
|||||||
if task.get('sync', False):
|
if task.get('sync', False):
|
||||||
return _sync(pack)
|
return _sync(pack)
|
||||||
# push it
|
# push it
|
||||||
broker.enqueue(pack)
|
enqueue_id = broker.enqueue(pack)
|
||||||
|
logger.info('Enqueued {}'.format(enqueue_id))
|
||||||
logger.debug('Pushed {}'.format(tag))
|
logger.debug('Pushed {}'.format(tag))
|
||||||
return task['id']
|
return task['id']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user