X7ROOT File Manager
Current Path:
/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
sentry_sdk
/
📁
..
📄
__init__.py
(854 B)
📁
__pycache__
📄
_compat.py
(2.3 KB)
📄
_functools.py
(2.22 KB)
📄
_queue.py
(8.21 KB)
📄
_types.py
(1.26 KB)
📄
api.py
(4.69 KB)
📄
attachments.py
(1.75 KB)
📄
client.py
(14.03 KB)
📄
consts.py
(3.5 KB)
📄
debug.py
(1.11 KB)
📄
envelope.py
(8.17 KB)
📄
hub.py
(21.35 KB)
📁
integrations
📄
py.typed
(0 B)
📄
scope.py
(15.62 KB)
📄
serializer.py
(15.92 KB)
📄
sessions.py
(7.67 KB)
📄
tracing.py
(25.24 KB)
📄
transport.py
(11.48 KB)
📄
utils.py
(26.26 KB)
📄
worker.py
(3.87 KB)
Editing: debug.py
import sys import logging from sentry_sdk import utils from sentry_sdk.hub import Hub from sentry_sdk.utils import logger from sentry_sdk.client import _client_init_debug from logging import LogRecord class _HubBasedClientFilter(logging.Filter): def filter(self, record): # type: (LogRecord) -> bool if _client_init_debug.get(False): return True hub = Hub.current if hub is not None and hub.client is not None: return hub.client.options["debug"] return False def init_debug_support(): # type: () -> None if not logger.handlers: configure_logger() configure_debug_hub() def configure_logger(): # type: () -> None _handler = logging.StreamHandler(sys.stderr) _handler.setFormatter(logging.Formatter(" [sentry] %(levelname)s: %(message)s")) logger.addHandler(_handler) logger.setLevel(logging.DEBUG) logger.addFilter(_HubBasedClientFilter()) def configure_debug_hub(): # type: () -> None def _get_debug_hub(): # type: () -> Hub return Hub.current utils._get_debug_hub = _get_debug_hub
Upload File
Create Folder