Switch to inbuilt django logging, disable the Sentry hacks

This commit is contained in:
2011-09-09 14:41:26 +01:00
parent 33fef0560e
commit 43dea4127e
3 changed files with 41 additions and 5 deletions

View File

@@ -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) }})