Capture exceptions in django management commands into Sentry by Raven
Capture exceptions in django management commands into Sentry by Raven.
Many management commands running in cron and by default errors and exceptions not wrote in logs. Or some people redirect all stdout in file (command >> file.txt) with log rotation or not.
This package make possible capture exceptions (not all stdout/stderr) in your Sentry project.
$ pip install django-maven
Add django_maven in INSTALLED_APPS.
Use it! ;)
Add maven command by first argument for manage.py in your management command string.
For example, this is command without django-maven:
$ python manage.py rebuild_index –noinput
And command with django-maven:
$ python manage.py maven rebuild_index –noinput
If rebuild_index command raising exception (server die or error creating index) you see their in your Sentry.
django-maven is django Management rAVEN.
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/saippuakauppias/django-maven/trend.png)](https://bitdeli.com/free “Bitdeli Badge”)