summaryrefslogtreecommitdiffstats
path: root/simplemetrics
diff options
context:
space:
mode:
Diffstat (limited to 'simplemetrics')
-rw-r--r--simplemetrics/src/main/java/com/yahoo/metrics/simple/jdisc/JdiscMetricsFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/simplemetrics/src/main/java/com/yahoo/metrics/simple/jdisc/JdiscMetricsFactory.java b/simplemetrics/src/main/java/com/yahoo/metrics/simple/jdisc/JdiscMetricsFactory.java
index a4dbdb5790e..f2748cd747b 100644
--- a/simplemetrics/src/main/java/com/yahoo/metrics/simple/jdisc/JdiscMetricsFactory.java
+++ b/simplemetrics/src/main/java/com/yahoo/metrics/simple/jdisc/JdiscMetricsFactory.java
@@ -38,7 +38,7 @@ public class JdiscMetricsFactory implements MetricConsumerFactory, SnapshotProvi
public MetricSnapshot latestSnapshot() {
Bucket curr = metricReceiver.getSnapshot();
if (curr == null) {
- log.warning("no snapshot from instance of " + metricInstance.getClass());
+ log.warning("no snapshot from instance of " + metricReceiver.getClass());
return null;
} else {
SnapshotConverter converter = new SnapshotConverter(curr);
@@ -50,7 +50,7 @@ public class JdiscMetricsFactory implements MetricConsumerFactory, SnapshotProvi
public void histogram(PrintStream output) {
Bucket curr = metricReceiver.getSnapshot();
if (curr == null) {
- log.warning("no snapshot from instance of " + metricInstance.getClass());
+ log.warning("no snapshot from instance of " + metricReceiver.getClass());
} else {
SnapshotConverter converter = new SnapshotConverter(curr);
converter.outputHistograms(output);