Skip to content

Commit 9967d52

Browse files
author
Ignacio Quintero
committed
address PR comments
1 parent c086913 commit 9967d52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/estimator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import json
1616
import logging
1717
import os
18+
import warnings
1819
from abc import ABCMeta
1920
from abc import abstractmethod
2021
from six import with_metaclass
@@ -559,7 +560,8 @@ def __init__(self, entry_point, source_dir=None, hyperparameters=None, enable_cl
559560
self.source_dir = source_dir
560561
self.entry_point = entry_point
561562
if enable_cloudwatch_metrics:
562-
logging.warn('enable_cloudwatch_metrics is now deprecated and will be removed in the future.')
563+
warnings.warn('enable_cloudwatch_metrics is now deprecated and will be removed in the future.',
564+
DeprecationWarning)
563565
self.enable_cloudwatch_metrics = False
564566
self.container_log_level = container_log_level
565567
self._hyperparameters = hyperparameters or {}

0 commit comments

Comments
 (0)