Skip to content

Commit

Permalink
Removing 'Graphite' and replacing with StatsD in errors -- very confu…
Browse files Browse the repository at this point in the history
…sing
  • Loading branch information
Xorlev committed Jul 27, 2012
1 parent 2ca808e commit 24cc13f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public StatsdReporter(MetricsRegistry metricsRegistry, String prefix, MetricPred
}

public StatsdReporter(MetricsRegistry metricsRegistry, String prefix, MetricPredicate predicate, UDPSocketProvider socketProvider, Clock clock, VirtualMachineMetrics vm) throws IOException {
this(metricsRegistry, prefix, predicate, socketProvider, clock, vm, "graphite-reporter");
this(metricsRegistry, prefix, predicate, socketProvider, clock, vm, "statsd-reporter");
}

public StatsdReporter(MetricsRegistry metricsRegistry, String prefix, MetricPredicate predicate, UDPSocketProvider socketProvider, Clock clock, VirtualMachineMetrics vm, String name) throws IOException {
Expand Down Expand Up @@ -113,9 +113,9 @@ public void run() {
socket.send(packet);
} catch (Exception e) {
if (LOG.isDebugEnabled()) {
LOG.debug("Error writing to Graphite", e);
LOG.debug("Error writing to StatsD", e);
} else {
LOG.warn("Error writing to Graphite: {}", e.getMessage());
LOG.warn("Error writing to StatsD: {}", e.getMessage());
}
if (writer != null) {
try {
Expand Down Expand Up @@ -302,7 +302,7 @@ protected void sendData(String name, String value, StatType statType) {
writer.write('\n');
writer.flush();
} catch (IOException e) {
LOG.error("Error sending to Graphite:", e);
LOG.error("Error sending to StatsD:", e);
}
}

Expand Down

0 comments on commit 24cc13f

Please sign in to comment.