Exemple #1
0
    def handle(self, *args, **options):
        if len(args) != 1 or args[0] != 'test':
            print('Usage: manage.py raven test')
            sys.exit(1)

        from raven.contrib.django.models import client

        send_test_message(client, options)
Exemple #2
0
def check_raven_sentry_connection():
	from raven.scripts.runner import send_test_message
	from raven.contrib.django.models import client
	try:
		send_test_message(client, {})
		return True
	except:
		return "could not connect to sentry"
Exemple #3
0
 def handle(self, command=None, *args, **options):
     if command not in ('test', ['test']):
         print('Usage: manage.py raven test')
         sys.exit(1)
     from raven.contrib.django.models import client
     send_test_message(client, {
         'tags': options.get('tags'),
         'data': options.get('data')
     })
     time.sleep(3)
Exemple #4
0
    def handle(self, command=None, *args, **options):
        if command not in ('test', ['test']):
            print('Usage: manage.py raven test')
            sys.exit(1)

        from raven.contrib.django.models import client

        send_test_message(client, {
            'tags': options.get('tags'),
            'data': options.get('data'),
        })
        time.sleep(3)
def sentry_test_task():
    if client:
        send_test_message(client, {})
def sentry_test_task():
    if client:
        send_test_message(client, {})