Skip to content

[Bug] sagemaker should not toggle global logging facilities #2072

Closed

Description

@yifeim

After importing sagemaker, all my warning messages disappear. Here is a reproducible example:

import sagemaker, warnings # order does not matter
warnings.warn('this important warning message cannot be seen')

After some digging, I found this line of code to be particularly suspicious:

https://github.com/aws/sagemaker-python-sdk/blame/master/src/sagemaker/deprecations.py#L19

I was wondering if there is another way to achieve the desired effects without unexpected and potentially significant consequences. Thanks.

Activity

  1. icywang86rui commented on Jan 11, 2021

    @icywang86rui
    Contributor
  2. icywang86rui commented on Jan 12, 2021

    @icywang86rui
    Contributor
  3. icywang86rui commented on Jan 12, 2021

    @icywang86rui
    Contributor

    PR is merged. Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions