From 55c82c65d8ec359a81a956b661a1b826a237aca6 Mon Sep 17 00:00:00 2001 From: brharrington Date: Thu, 13 Jun 2024 12:01:25 -0500 Subject: [PATCH] atlas: cleanup stop log message (#1136) The `step` variable is a duration and the toString indicates the units. Remove the `ms` in the log message which are confusing and lead to message like `PT1Mms`. --- .../main/java/com/netflix/spectator/atlas/AtlasRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasRegistry.java b/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasRegistry.java index 5c8a3a271..6b3391cfd 100644 --- a/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasRegistry.java +++ b/spectator-reg-atlas/src/main/java/com/netflix/spectator/atlas/AtlasRegistry.java @@ -196,7 +196,7 @@ public void stop() { // Shutdown background tasks to collect data scheduler.shutdown(); scheduler = null; - logger.info("stopped collecting metrics every {}ms reporting to {}", step, uri); + logger.info("stopped collecting metrics every {} reporting to {}", step, uri); // Flush data to Atlas try {