From 6bc8b23c1a04668f340867acbc83e045551d6bb9 Mon Sep 17 00:00:00 2001 From: Alexandre Yang Date: Wed, 11 Mar 2020 15:38:48 +0100 Subject: [PATCH] Reformat warnings --- datadog_checks_base/datadog_checks/base/stubs/aggregator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datadog_checks_base/datadog_checks/base/stubs/aggregator.py b/datadog_checks_base/datadog_checks/base/stubs/aggregator.py index 6380277d60cd8..1aad6c5b2ac38 100644 --- a/datadog_checks_base/datadog_checks/base/stubs/aggregator.py +++ b/datadog_checks_base/datadog_checks/base/stubs/aggregator.py @@ -220,7 +220,7 @@ def _assert_metric_using_metadata(self, metric_stub): self._metadata_metrics = get_metadata_metrics() if metric_stub.name not in self._metadata_metrics: - warnings.warn("[WARNING] Expect metric `{}` to be in metadata.csv, but it's not.".format(metric_stub.name)) + warnings.warn("##[warning] Expect metric `{}` to be in metadata.csv, but it's not.".format(metric_stub.name)) return # Since we are asserting the in-app metric type (NOT submission type), @@ -230,7 +230,7 @@ def _assert_metric_using_metadata(self, metric_stub): actual_metric_type = AggregatorStub.METRIC_ENUM_MAP_REV[metric_stub.type] if expected_metric_type != actual_metric_type: - error_msg = "[WARNING] Expect type `{}` (from metadata.csv) but got type `{}` for metric `{}`.".format( + error_msg = "##[warning] Expect type `{}` (from metadata.csv) but got type `{}` for metric `{}`.".format( expected_metric_type, actual_metric_type, metric_stub.name ) warnings.warn(error_msg)