Skip to main content

Capture exceptions in django management commands into Sentry by Raven

Project description

Capture exceptions in django management commands into Sentry by Raven.

Problem And Solution

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.

Installation

  1. Install package:

    $ pip install django-maven

  2. Add django_maven in INSTALLED_APPS.

  3. Use it! ;)

Example Of Usage

It’s simple!

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.

The name

django-maven is django Management rAVEN. # Changes

0.1 (2013-07-17)

Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-maven-0.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file django-maven-0.1.tar.gz.

File metadata

  • Download URL: django-maven-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-maven-0.1.tar.gz
Algorithm Hash digest
SHA256 f03263ac94e3899ca05dc1305d0cf3fd8a0d80fe0395414bfa97cfecffa1bb94
MD5 ece54e6f008ab2b4e1b789076cc80426
BLAKE2b-256 77c5b1d3c19aaf71d068b79aae6eca44190cac793cf7dd5155cab76291b2a988

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page