Skip to content

Commit

Permalink
Reformat warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreYang committed Mar 11, 2020
1 parent 1a00a76 commit 6bc8b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datadog_checks_base/datadog_checks/base/stubs/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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)
Expand Down

0 comments on commit 6bc8b23

Please sign in to comment.