Improved log message about metrics too old to be used

This commit is contained in:
Craig Bryant 2014-05-05 22:36:26 -06:00
parent 506a765889
commit bad27cf318

View File

@ -174,8 +174,8 @@ public class MetricAggregationBolt extends BaseRichBolt {
LOG.trace("Aggregated value {} at {} for {}. Updated {}", metric.value, metric.timestamp,
metricDefinitionAndTenantId, stats.getStats());
else
LOG.warn("Invalid metric timestamp {} for {}, {}", metric.timestamp, metricDefinitionAndTenantId,
stats.getStats());
LOG.warn("Metric is too old, age {} seconds: timestamp {} for {}, {}", currentTimeSeconds() - metric.timestamp,
metric.timestamp, metricDefinitionAndTenantId, stats.getStats());
}
}