Skip to content

Commit ad85f43

Browse files
committed
Debug HTTP requests
1 parent adee613 commit ad85f43

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llm-service/app/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ def _configure_logger() -> None:
8989

9090
_configure_logger()
9191

92+
93+
def _enable_http_debug() -> None:
94+
urllib3_logger = logging.getLogger("urllib3")
95+
urllib3_logger.setLevel(logging.DEBUG)
96+
urllib3_logger.propagate = True
97+
98+
99+
_enable_http_debug()
100+
92101
if os.environ.get("ENABLE_OPIK") == "True":
93102
opik.configure(
94103
use_local=True, url=os.environ.get("OPIK_URL", "http://localhost:5174")

0 commit comments

Comments
 (0)