You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Import of package shouldn't affect global logging levels.
Screenshots or logs
❯ poetry run python
Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 09:45:58) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>>
>>> logger = logging.getLogger(__name__)
>>> print(logging.getLevelName(logger.getEffectiveLevel()))
WARNING
>>>
>>> import sagemaker
/Users/alex/Library/Caches/pypoetry/virtualenvs/sm-test--bhHLzdX-py3.12/lib/python3.12/site-packages/pydantic/_internal/_fields.py:192: UserWarning: Field name "json" in "MonitoringDatasetFormat" shadows an attribute in parent "Base"
warnings.warn(
sagemaker.config INFO - Not applying SDK defaults from location: /Library/Application Support/sagemaker/config.yaml
sagemaker.config INFO - Not applying SDK defaults from location: /Users/alex/Library/Application Support/sagemaker/config.yaml
>>>
>>> logger = logging.getLogger(__name__)
>>> print(logging.getLevelName(logger.getEffectiveLevel()))
INFO
>>> sagemaker.__version__
'2.235.2'
System information
A description of your system. Please provide:
SageMaker Python SDK version: 2.235.2
Framework name (eg. PyTorch) or algorithm (eg. KMeans): N/A
Framework version: N/A
Python version: 3.12.1
CPU or GPU: CPU
Custom Docker image (Y/N): N
The text was updated successfully, but these errors were encountered:
Describe the bug
Import of sagemaker (ver 2.235.2) changes logging level to
INFO
.To reproduce
Tried with clean poetry env, where only sagemaker package is installed
Expected behavior
Import of package shouldn't affect global logging levels.
Screenshots or logs
System information
A description of your system. Please provide:
The text was updated successfully, but these errors were encountered: