Skip to content

Commit 95c825d

Browse files
committed
fix: set httpx logger to WARNING level to reduce verbose logs
1 parent 5ef8e80 commit 95c825d

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## [3.5.1] - 2025-03-10
4+
5+
- [Fixed] Set httpx logger to WARNING level to reduce verbose HTTP request logs in applications using this library
6+
37
## [3.5.0] - 2025-03-06
48

59
- [Improved] Major performance optimizations (>50% faster)

pygqlc/GraphQLClient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import httpx
1515
import pydash as py_
1616
import orjson
17+
import logging
1718
from pygqlc.helper_modules.Singleton import Singleton
1819
from tenacity import (
1920
retry,
@@ -23,6 +24,8 @@
2324
)
2425
from .MutationBatch import MutationBatch
2526

27+
# Set httpx logger to WARNING level to reduce HTTP request logs
28+
logging.getLogger('httpx').setLevel(logging.WARNING)
2629

2730
GQL_WS_SUBPROTOCOL = "graphql-transport-ws"
2831

pygqlc/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.5.0'
1+
__version__ = '3.5.1'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pygqlc"
3-
version = "3.5.0"
3+
version = "3.5.1"
44
description = "Python client for graphql APIs"
55
authors = ["Baruc Almaguer <baruc.almaguer@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)