Exemplo n.º 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)
Exemplo n.º 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"
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 5
0
def sentry_test_task():
    if client:
        send_test_message(client, {})
Exemplo n.º 6
0
def sentry_test_task():
    if client:
        send_test_message(client, {})