Skip to content

Commit

Permalink
Avoid generating too many logs (#18190)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau authored Oct 19, 2022
1 parent 25feff7 commit 8972fbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void gauge(final MetricsRegistry metric, final double val, final MetricAt
return;
}

log.info("publishing gauge, name: {}, value: {}, attributes: {}", metric, val, attributes);
log.debug("publishing gauge, name: {}, value: {}, attributes: {}", metric, val, attributes);
statsDClient.gauge(metric.getMetricName(), val, toTags(attributes));
}
}
Expand All @@ -117,7 +117,7 @@ public void distribution(final MetricsRegistry metric, final double val, final M
return;
}

log.info("recording distribution, name: {}, value: {}, attributes: {}", metric, val, attributes);
log.debug("recording distribution, name: {}, value: {}, attributes: {}", metric, val, attributes);
statsDClient.distribution(metric.getMetricName(), val, toTags(attributes));
}
}
Expand Down

0 comments on commit 8972fbd

Please sign in to comment.