title: How to log exceptions occurring in a django celery task
body: <p>I have set up celery to work with my django application using their daemonization instructions (<a href="http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#daemonizing" rel="noreferrer">http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#daemonizing</a>) </p>
  
  <p>Here is my test task</p>
  
  <pre><code>@periodic_task(run_every=timedelta(seconds=10))
  def debugger():
      logger.info("Running debugger")
      raise Exception('Failed')
  </code></pre>
  
  <p>I need a way of knowing that this task (debugger) failed due to the exception. Celery's logging file prints the logger.info("running debugger") log, but it does not log the exception. Am I missing something, or am I supposed to find failed tasks some other way? </p>