Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > raven > contrib > django >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
celery | Directory | - | - | |
management | Directory | - | - | |
middleware | Directory | - | - | |
raven_compat | Directory | - | - | |
templatetags | Directory | - | - | |
__init__.py | File | 315 bytes | April 17 2025 13:10:58. | |
apps.py | File | 308 bytes | April 17 2025 13:10:58. | |
client.py | File | 10548 bytes | April 17 2025 13:10:58. | |
handlers.py | File | 1038 bytes | April 17 2025 13:10:58. | |
logging.py | File | 466 bytes | April 17 2025 13:10:58. | |
models.py | File | 9421 bytes | April 17 2025 13:10:58. | |
resolver.py | File | 3192 bytes | April 17 2025 13:10:58. | |
serializers.py | File | 2167 bytes | April 17 2025 13:10:58. | |
urls.py | File | 594 bytes | April 17 2025 13:10:58. | |
utils.py | File | 3176 bytes | April 17 2025 13:10:58. | |
views.py | File | 2988 bytes | April 17 2025 13:10:58. |
""" raven.contrib.django.handlers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import logging from raven.handlers.logging import SentryHandler as BaseSentryHandler from raven.utils import memoize class SentryHandler(BaseSentryHandler): def __init__(self, *args, **kwargs): # TODO(dcramer): we'd like to avoid this duplicate code, but we need # to currently defer loading client due to Django loading patterns. self.tags = kwargs.pop('tags', None) logging.Handler.__init__(self, level=kwargs.get('level', logging.NOTSET)) @memoize def client(self): # Import must be lazy for deffered Django loading from raven.contrib.django.models import client return client def _emit(self, record): request = getattr(record, 'request', None) return super(SentryHandler, self)._emit(record, request=request)
SILENT KILLER Tool