diff --git a/CHANGELOG.md b/CHANGELOG.md index 84fa3e20..4892c8b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## Release 1.2.6 (TBD) + +### Changes + +- Force `urllib3` logging to `WARNING` level to avoid spamming the console if global logging level is set to `DEBUG`. + +--- + ## Release 1.2.5 (10/5/23) ### Fixed @@ -7,12 +15,16 @@ - Handler called twice. - Default container disk size removed if template is provided when creating a new pod. +--- + ## ~~Release (Patch) 1.2.3 (10/4/23)~~ Replaced by 1.2.5 ### Bug Fix - Job outputs that were not dictionaries, bool, or str were swallowed by the serverless worker. This has been fixed. +--- + ## ~~Release 1.2.2 (10/4/23)~~ Replaced by 1.2.5 ### Added @@ -33,6 +45,8 @@ - Reduce pool_connections for ping requests to 10. - Double timeout for ping requests. +--- + ## Release 1.2.1 (9/22/23) ### Added @@ -46,6 +60,8 @@ - Region is included when using S3 storage via rp_upload, automatically filled in for Amazon S3 buckets and Digital Ocean Spaces. +--- + ## Release 1.2.0 (8/29/23) ### Added diff --git a/runpod/__init__.py b/runpod/__init__.py index e0ff142b..b2748e9f 100644 --- a/runpod/__init__.py +++ b/runpod/__init__.py @@ -1,5 +1,7 @@ """ Allows runpod to be imported as a module. """ +import logging + from . import serverless from .endpoint import Endpoint from .endpoint import AsyncioEndpoint, AsyncioJob @@ -23,3 +25,7 @@ api_url_base = "https://api.runpod.io" # pylint: disable=invalid-name endpoint_url_base = "https://api.runpod.ai/v2" # pylint: disable=invalid-name + + +# --------------------------- Force Logging Levels --------------------------- # +logging.getLogger("urllib3").setLevel(logging.WARNING)