Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
R = TypeVar("R")


epoch = datetime(1970, 1, 1)

# The logger is created here but initialized in the debug support module
logger = logging.getLogger("sentry_sdk.errors")

Expand Down Expand Up @@ -248,10 +246,6 @@ def capture_internal_exception(exc_info: "ExcInfo") -> None:
logger.error("Internal error in sentry_sdk", exc_info=exc_info)


def to_timestamp(value: "datetime") -> float:
return (value - epoch).total_seconds()


def format_timestamp(value: "datetime") -> str:
"""Formats a timestamp in RFC 3339 format.

Expand Down
Loading