diff --git a/.pubnub.yml b/.pubnub.yml index b9efca0c..7e3ce40b 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,5 +1,5 @@ name: python -version: 10.7.0 +version: 10.7.1 schema: 1 scm: github.com/pubnub/python sdks: @@ -18,7 +18,7 @@ sdks: distributions: - distribution-type: library distribution-repository: package - package-name: pubnub-10.7.0 + package-name: pubnub-10.7.1 location: https://pypi.org/project/pubnub/ supported-platforms: supported-operating-systems: @@ -94,8 +94,8 @@ sdks: - distribution-type: library distribution-repository: git release - package-name: pubnub-10.7.0 - location: https://github.com/pubnub/python/releases/download/10.7.0/pubnub-10.7.0.tar.gz + package-name: pubnub-10.7.1 + location: https://github.com/pubnub/python/releases/download/10.7.1/pubnub-10.7.1.tar.gz supported-platforms: supported-operating-systems: Linux: @@ -169,6 +169,11 @@ sdks: license-url: https://github.com/encode/httpx/blob/master/LICENSE.md is-required: Required changelog: + - date: 2026-06-15 + version: 10.7.1 + changes: + - type: bug + text: "Drop operation identifier from request handler debug logs." - date: 2026-06-08 version: 10.7.0 changes: diff --git a/CHANGELOG.md b/CHANGELOG.md index 46d3cb60..3f0ecc63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 10.7.1 +June 15 2026 + +#### Fixed +- Drop operation identifier from request handler debug logs. + ## 10.7.0 June 08 2026 diff --git a/pubnub/request_handlers/async_aiohttp.py b/pubnub/request_handlers/async_aiohttp.py index 3b057b66..0a92a090 100644 --- a/pubnub/request_handlers/async_aiohttp.py +++ b/pubnub/request_handlers/async_aiohttp.py @@ -173,7 +173,7 @@ async def async_request(self, options_func, cancellation_event): else: data = "N/A" - logger.debug("[%s %s] %s" % (options.operation_type, response_info.http_version, data)) + logger.debug("[%s] %s", response_info.http_version, data) if response.status not in (200, 307, 204): diff --git a/pubnub/request_handlers/async_httpx.py b/pubnub/request_handlers/async_httpx.py index 512e4a56..3cb50fb3 100644 --- a/pubnub/request_handlers/async_httpx.py +++ b/pubnub/request_handlers/async_httpx.py @@ -226,7 +226,7 @@ async def async_request(self, options_func, cancellation_event): else: data = "N/A" - logger.debug("[%s %s] %s" % (options.operation_type, response_info.http_version, data)) + logger.debug("[%s] %s", response_info.http_version, data) if response.status_code not in (200, 307, 204): diff --git a/pubnub/request_handlers/httpx.py b/pubnub/request_handlers/httpx.py index b0ad5c37..7a1fe872 100644 --- a/pubnub/request_handlers/httpx.py +++ b/pubnub/request_handlers/httpx.py @@ -436,13 +436,13 @@ def _invoke_request(self, p_options, e_options, base_origin): res = session.request(**args) try: - logger.debug("[%s %s] %s" % (e_options.operation_type, res.http_version, res.text)) + logger.debug("[%s] %s", res.http_version, res.text) except httpx.ResponseNotRead: content = res.content.decode('utf-8', errors='ignore') - logger.debug("[%s %s] %s" % (e_options.operation_type, res.http_version, content)) + logger.debug("[%s] %s", res.http_version, content) except Exception as e: msg = "(content access failed: %s)" % str(e) - logger.debug("[%s %s] %s" % (e_options.operation_type, res.http_version, msg)) + logger.debug("[%s] %s", res.http_version, msg) except httpx.ConnectError as e: if use_watchdog and self._watchdog.triggered: diff --git a/pubnub/request_handlers/requests.py b/pubnub/request_handlers/requests.py index 781d65ec..62c50a7b 100644 --- a/pubnub/request_handlers/requests.py +++ b/pubnub/request_handlers/requests.py @@ -276,7 +276,7 @@ def _invoke_request(self, p_options, e_options, base_origin): f"HTTP/{res.raw.version // 10}.{res.raw.version % 10}" if res.raw and res.raw.version else "unknown" ) - logger.debug("[%s %s] %s" % (e_options.operation_type, http_ver, res.text)) + logger.debug("[%s] %s", http_ver, res.text) except requests.exceptions.ConnectionError as e: raise PubNubException( diff --git a/setup.py b/setup.py index 58def440..c95296a6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='pubnub', - version='10.7.0', + version='10.7.1', description='PubNub Real-time push service in the cloud', author='PubNub', author_email='support@pubnub.com',