Skip to content

Commit 3363c32

Browse files
committed
fix deprecation warning
run black
1 parent 9afb126 commit 3363c32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samtranslator/metrics/metrics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def __init__(self, namespace="ServerlessTransform", metrics_publisher=None):
124124
def __del__(self):
125125
if len(self.metrics_cache) > 0:
126126
# attempting to publish if user forgot to call publish in code
127-
LOG.warn("There are unpublished metrics. Please make sure you call publish after you record all metrics.")
127+
LOG.warning(
128+
"There are unpublished metrics. Please make sure you call publish after you record all metrics."
129+
)
128130
self.publish()
129131

130132
def _record_metric(self, name, value, unit, dimensions=None):

0 commit comments

Comments
 (0)