Skip to content

Commit c5182a3

Browse files
committed
fix: remove logging level overrides
1 parent 2763f9a commit c5182a3

File tree

11 files changed

+0
-14
lines changed

11 files changed

+0
-14
lines changed

src/sagemaker/chainer/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from sagemaker.chainer.model import ChainerModel
2121
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
2222

23-
logging.basicConfig()
2423
logger = logging.getLogger('sagemaker')
2524

2625

src/sagemaker/local/entities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from sagemaker.utils import get_config_value
2727

2828
logger = logging.getLogger(__name__)
29-
logger.setLevel(logging.WARNING)
3029

3130
_UNUSED_ARN = 'local:arn-does-not-matter'
3231
HEALTH_CHECK_TIMEOUT_LIMIT = 120

src/sagemaker/local/image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
TRAINING_JOB_NAME_ENV_NAME = 'TRAINING_JOB_NAME'
5050

5151
logger = logging.getLogger(__name__)
52-
logger.setLevel(logging.WARNING)
5352

5453

5554
class _SageMakerContainer(object):

src/sagemaker/local/local_session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from sagemaker.utils import get_config_value
2727

2828
logger = logging.getLogger(__name__)
29-
logger.setLevel(logging.WARNING)
3029

3130

3231
class LocalSagemakerClient(object):

src/sagemaker/model.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
from sagemaker import fw_utils, local, session, utils
2020
from sagemaker.transformer import Transformer
2121

22-
logging.basicConfig()
2322
LOGGER = logging.getLogger('sagemaker')
24-
LOGGER.setLevel(logging.INFO)
2523

2624
NEO_ALLOWED_TARGET_INSTANCE_FAMILY = set(['ml_c5', 'ml_m5', 'ml_c4', 'ml_m4', 'jetson_tx1', 'jetson_tx2', 'ml_p2',
2725
'ml_p3', 'deeplens', 'rasp3b'])

src/sagemaker/mxnet/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from sagemaker.mxnet.model import MXNetModel
2121
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
2222

23-
logging.basicConfig()
2423
logger = logging.getLogger('sagemaker')
2524

2625

src/sagemaker/pytorch/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from sagemaker.pytorch.model import PyTorchModel
2121
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
2222

23-
logging.basicConfig()
2423
logger = logging.getLogger('sagemaker')
2524

2625

src/sagemaker/rl/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from sagemaker.mxnet.model import MXNetModel
2323
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
2424

25-
logging.basicConfig()
2625
logger = logging.getLogger('sagemaker')
2726

2827
SAGEMAKER_ESTIMATOR = 'sagemaker_estimator'

src/sagemaker/session.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@
3131
from sagemaker.user_agent import prepend_user_agent
3232
from sagemaker.utils import name_from_image, secondary_training_status_changed, secondary_training_status_message
3333

34-
logging.basicConfig()
3534
LOGGER = logging.getLogger('sagemaker')
36-
LOGGER.setLevel(logging.INFO)
37-
3835

3936
_STATUS_CODE_TABLE = {
4037
'COMPLETED': 'Completed',

src/sagemaker/sklearn/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from sagemaker.sklearn.model import SKLearnModel
2222
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
2323

24-
logging.basicConfig()
2524
logger = logging.getLogger('sagemaker')
2625

2726

src/sagemaker/tensorflow/estimator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
from sagemaker.utils import get_config_value
3030
from sagemaker.vpc_utils import VPC_CONFIG_DEFAULT
3131

32-
logging.basicConfig()
3332
LOGGER = logging.getLogger('sagemaker')
3433

3534

0 commit comments

Comments
 (0)