title: Sentry logging in Django/Celery stopped working
body: <p>I have no idea whats wrong. So far logging worked fine (and I was relying on that) but it seems to have stopped. I wrote a little test function (which does not work either):</p>
  
  <p><strong>core.tasks.py</strong></p>
  
  <pre><code>import logging
  from celery.utils.log import get_task_logger
  
  logger = get_task_logger(__name__)
  logger.setLevel(logging.DEBUG)
  
  @app.task
  def log_error():
      logger.error('ERROR')
  </code></pre>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>INSTALLED_APPS += (
      'raven.contrib.django.raven_compat',
  )
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': True,
      'root': {
          'level': 'INFO', #If set to DEBUG, prints ALL DJANGO debug logs.
          'handlers': ['console', 'sentry'],
      },
      'formatters': {
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          #log everything to the console
          'console':{
              'level':'DEBUG',
              'class':'logging.StreamHandler',
              'formatter': 'simple'
          },
          #logs directly to sentry
          'sentry': {
              'level': 'ERROR',
              'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
              #'class': 'raven.contrib.django.handlers.SentryHandler', #I have tried both
          },
      },
      'loggers': {
          'django.request':{
              'handlers': ['console', 'sentry'],
              'level': 'DEBUG',
              'propagate': False,
          },
          'celery.task':{
              'handlers': ['console', 'sentry'],
              'level': 'DEBUG',
              'propagate': False,
          },
          #this is the logger for celery itself
          'celery':{
              'handlers': ['console', 'sentry'],
              'level': 'ERROR',
              'propagate': False,
          },
      },
  }
  
  from logging.config import dictConfig
  dictConfig(LOGGING)
  </code></pre>
  
  <p>Executing the following in the Django shell logs to the console but it doesn't reach Sentry:</p>
  
  <pre><code>from core import tasks
  tasks.log_error.delay()
  </code></pre>
  
  <p>It works when executing the task synchronously:</p>
  
  <pre><code>tasks.log_error()
  </code></pre>
  
  <p>Help!?</p>
  
  <p><em>Django==1.6.2</em>, <em>raven==5.0.0</em>, <em>sentry==6.3.2</em>, <em>Python 2.7.3</em></p>