Skip to content

Commit f3a6044

Browse files
authored
[CHORE] remove debug print on init (#23)
Removed automatic debug output that was printed every time httpmorph was imported, making the library silent unless errors occur. This improves user experience by eliminating unnecessary stderr output.
1 parent 45efb00 commit f3a6044

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/httpmorph/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Built from scratch in C with BoringSSL. No fallback implementations.
77
"""
88

9-
import sys
10-
119
# Read version from package metadata (single source of truth: pyproject.toml)
1210
try:
1311
from importlib.metadata import version as _get_version
@@ -64,8 +62,6 @@
6462
"python setup.py build_ext --inplace"
6563
)
6664

67-
print("[httpmorph] Using C extension with BoringSSL", file=sys.stderr)
68-
6965
# Import async client (C-level async I/O with kqueue/epoll)
7066
try:
7167
from httpmorph._async_client import AsyncClient, AsyncResponse

src/httpmorph/_client_c.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@
6868
else:
6969
raise ImportError("Could not create module spec")
7070

71-
except (ImportError, Exception) as e:
72-
print(f"WARNING: Failed to import _httpmorph: {e}", file=sys.stderr)
71+
except (ImportError, Exception):
7372
HAS_C_EXTENSION = False
7473
_httpmorph = None
7574

0 commit comments

Comments
 (0)