Sunday, April 21, 2013

Re: logging within celery processes



On Sunday, April 21, 2013 5:51:06 AM UTC+1, Mike wrote:
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?


CELERY_SEND_TASK_ERROR_EMAIL is not connected to logging,
so if you receive "some info" by mail, then it's not being sent by celery, you must
have configured something else to send that mail!

 

--
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