PATH: //proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/sentry_sdk
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _compat.py
↓
X
📄 _functools.py
↓
X
📄 _lru_cache.py
↓
X
📄 _queue.py
↓
X
📄 _types.py
↓
X
📄 _werkzeug.py
↓
X
📄 api.py
↓
X
📄 attachments.py
↓
X
📄 client.py
↓
X
📄 consts.py
↓
X
📁 crons/
X
📄 debug.py
↓
X
📄 envelope.py
↓
X
📄 hub.py
↓
X
📁 integrations/
X
📄 monitor.py
↓
X
📄 profiler.py
↓
X
📄 py.typed
↓
X
📄 scope.py
↓
X
📄 scrubber.py
↓
X
📄 serializer.py
↓
X
📄 session.py
↓
X
📄 sessions.py
↓
X
📄 tracing.py
↓
X
📄 tracing_utils.py
↓
X
📄 tracing_utils_py2.py
↓
X
📄 tracing_utils_py3.py
↓
X
📄 transport.py
↓
X
📄 utils.py
↓
X
📄 worker.py
↓
X
SAVING...
BERHASIL DIUBAH!
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
SIMPAN PERUBAHAN