SILENT KILLERPanel

Current Path: > > opt > hc_python > > lib64 > > python3.12 > site-packages > sentry_sdk


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 ]

Files and Folders in: //opt/hc_python//lib64//python3.12/site-packages/sentry_sdk

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
ai Directory - -
crons Directory - -
integrations Directory - -
profiler Directory - -
__init__.py File 1215 bytes May 23 2025 10:34:44.
_compat.py File 3116 bytes May 23 2025 10:34:44.
_init_implementation.py File 2559 bytes May 23 2025 10:34:44.
_log_batcher.py File 5085 bytes May 23 2025 10:34:44.
_lru_cache.py File 1229 bytes May 23 2025 10:34:44.
_queue.py File 11250 bytes May 23 2025 10:34:44.
_types.py File 10462 bytes May 23 2025 10:34:44.
_werkzeug.py File 3734 bytes May 23 2025 10:34:44.
api.py File 11866 bytes May 23 2025 10:34:44.
attachments.py File 3109 bytes May 23 2025 10:34:44.
client.py File 38029 bytes May 23 2025 10:34:44.
consts.py File 40631 bytes May 23 2025 10:34:44.
debug.py File 1019 bytes May 23 2025 10:34:44.
envelope.py File 10355 bytes May 23 2025 10:34:44.
feature_flags.py File 2233 bytes May 23 2025 10:34:44.
hub.py File 25675 bytes May 23 2025 10:34:44.
logger.py File 1656 bytes May 23 2025 10:34:44.
metrics.py File 29913 bytes May 23 2025 10:34:44.
monitor.py File 3710 bytes May 23 2025 10:34:44.
py.typed File 0 bytes May 23 2025 10:34:44.
scope.py File 63332 bytes May 23 2025 10:34:44.
scrubber.py File 6064 bytes May 23 2025 10:34:44.
serializer.py File 13087 bytes May 23 2025 10:34:44.
session.py File 5571 bytes May 23 2025 10:34:44.
sessions.py File 9181 bytes May 23 2025 10:34:44.
spotlight.py File 8678 bytes May 23 2025 10:34:44.
tracing.py File 48114 bytes May 23 2025 10:34:44.
tracing_utils.py File 28820 bytes May 23 2025 10:34:44.
transport.py File 32604 bytes May 23 2025 10:34:44.
types.py File 1222 bytes May 23 2025 10:34:44.
utils.py File 59368 bytes May 23 2025 10:34:44.
worker.py File 4464 bytes May 23 2025 10:34:44.

Reading File: //opt/hc_python//lib64//python3.12/site-packages/sentry_sdk/logger.py

# NOTE: this is the logger sentry exposes to users, not some generic logger.
import functools
import time
from typing import Any

from sentry_sdk import get_client, get_current_scope
from sentry_sdk.utils import safe_repr


def _capture_log(severity_text, severity_number, template, **kwargs):
    # type: (str, int, str, **Any) -> None
    client = get_client()
    scope = get_current_scope()

    attrs = {
        "sentry.message.template": template,
    }  # type: dict[str, str | bool | float | int]
    if "attributes" in kwargs:
        attrs.update(kwargs.pop("attributes"))
    for k, v in kwargs.items():
        attrs[f"sentry.message.parameter.{k}"] = v

    attrs = {
        k: (
            v
            if (
                isinstance(v, str)
                or isinstance(v, int)
                or isinstance(v, bool)
                or isinstance(v, float)
            )
            else safe_repr(v)
        )
        for (k, v) in attrs.items()
    }

    # noinspection PyProtectedMember
    client._capture_experimental_log(
        scope,
        {
            "severity_text": severity_text,
            "severity_number": severity_number,
            "attributes": attrs,
            "body": template.format(**kwargs),
            "time_unix_nano": time.time_ns(),
            "trace_id": None,
        },
    )


trace = functools.partial(_capture_log, "trace", 1)
debug = functools.partial(_capture_log, "debug", 5)
info = functools.partial(_capture_log, "info", 9)
warning = functools.partial(_capture_log, "warn", 13)
error = functools.partial(_capture_log, "error", 17)
fatal = functools.partial(_capture_log, "fatal", 21)

SILENT KILLER Tool