From 29b1d74770f711f3a1bd6462c20e97585e47f3c2 Mon Sep 17 00:00:00 2001 From: Rithika Date: Mon, 24 Jul 2023 10:50:38 -0400 Subject: [PATCH] Add more logging --- .../service/accumulator/MetricAggregationPolicySource.java | 1 + .../carbonj/service/engine/StorageAggregationRule.java | 1 + .../carbonj/service/engine/StorageAggregationRules.java | 1 + 3 files changed, 3 insertions(+) diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java index 69e10abd..5ae0b22c 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/accumulator/MetricAggregationPolicySource.java @@ -17,6 +17,7 @@ class MetricAggregationPolicySource { private MetricAggregationRulesLoader rulesLoader; + private static final Logger log = LoggerFactory.getLogger( MetricAggregationPolicySource.class ); public MetricAggregationPolicySource( MetricAggregationRulesLoader rulesLoader) { diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java index daffc021..d800844c 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRule.java @@ -20,6 +20,7 @@ class StorageAggregationRule final private Pattern pattern; final AggregationMethod method; final private boolean alwaysTrue; + private static final Logger log = LoggerFactory.getLogger( StorageAggregationRule.class ); public static StorageAggregationRule parseDefinition( String line) { diff --git a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java index e8a5df26..52ebbb39 100644 --- a/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java +++ b/carbonj.service/src/main/java/com/demandware/carbonj/service/engine/StorageAggregationRules.java @@ -18,6 +18,7 @@ public class StorageAggregationRules { private int revision; private List rules = new ArrayList<>(); + private static final Logger log = LoggerFactory.getLogger( StorageAggregationRules.class ); /** * Initializes instance with rules.