Saturday, April 20, 2013

logging within celery processes

I'm trying to get logging to work from within my celery process.  I have set:
CELERY_SEND_TASK_ERROR_EMAILS = True
in settings.py

within the process I am logging to level INFO:

logger.info('some info')

I launch the process using supervisor:

python manage.py celery worker --loglevel=ERROR

The problem is, I'm getting emails from the INFO level messages even though I specified ERROR on the command line.  Is this a bug?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate