mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-19 04:39:26 +00:00
Switch to inbuilt django logging, disable the Sentry hacks
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
import logging
|
||||
|
||||
from sentry.client.handlers import SentryHandler
|
||||
from piston.resource import Resource
|
||||
|
||||
class SentryResource(Resource):
|
||||
@@ -9,7 +8,6 @@ class SentryResource(Resource):
|
||||
def error_handler(self, e, request, meth, em_format):
|
||||
|
||||
logger = logging.getLogger('piston')
|
||||
logger.addHandler(SentryHandler())
|
||||
|
||||
logger.error('Piston exception: %s(%s)' % (e.__class__.__name__, e), exc_info=sys.exc_info(),
|
||||
extra={'data': {'handler': meth.im_class, 'request': request, 'get': dict(request.GET), 'post': dict(request.POST) }})
|
||||
|
||||
Reference in New Issue
Block a user