Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

debug logging no longer writes out the arg for an event. I've been se…

…nding pickled data through the arg, and logger doesn't like printing that. Not sure if its a good idea to send pickled objects as beanstalk job arguments, will investigate further
  • Loading branch information...
commit dec815605716efef32aaee92a92db5a35cc11f55 1 parent c853072
Cole Krumbholz authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django_beanstalkd/management/commands/beanstalk_worker.py
View
5 django_beanstalkd/management/commands/beanstalk_worker.py
@@ -114,15 +114,14 @@ def work(self):
job = beanstalk.reserve()
job_name = job.stats()['tube']
if job_name in self.jobs:
- logger.debug("Calling %s with arg: %s" % (job_name, job.body))
+ logger.debug("Calling %s" % job_name)
try:
self.jobs[job_name](job.body)
except Exception, e:
tp, value, tb = sys.exc_info()
- logger.error('Error while calling "%s" with arg "%s": '
+ logger.error('Error while calling "%s": '
'%s' % (
job_name,
- job.body,
e,
)
)
Please sign in to comment.
Something went wrong with that request. Please try again.