Commits

Dave Martorana  committed 3545228

Some log functions weren't sending 0 in the 'after' parameter

  • Participants
  • Parent commits 6a04f86

Comments (0)

Files changed (1)

File django_ztask/decorators.py

             after = kwargs.pop('__ztask_after', 0)
             if settings.ZTASKD_DISABLED:
                 try:
-                    socket.send_pyobj(('ztask_log', ('Would have called but ZTASKD_DISABLED is True', function_name), None))
+                    socket.send_pyobj(('ztask_log', ('Would have called but ZTASKD_DISABLED is True', function_name), None, 0))
                 except:
                     logger.info('Would have sent %s but ZTASKD_DISABLED is True' % function_name)
                 return
 
         def _func_delay(*args, **kwargs):
             try:
-                socket.send_pyobj(('ztask_log', ('.delay is depricated... use.async instead', function_name), None))
+                socket.send_pyobj(('ztask_log', ('.delay is depricated... use.async instead', function_name), None, 0))
             except:
                 pass
             _func(*args, **kwargs)