Turn down logging on metrics reporter.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-12-03 11:09:37 -08:00
parent b802994809
commit 905717977e
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class JsonMetricsReporter extends ScheduledReporter {
SortedMap<String, Timer> stringTimerSortedMap) SortedMap<String, Timer> stringTimerSortedMap)
{ {
try { try {
logger.info("Reporting metrics..."); logger.debug("Reporting metrics...");
URL url = new URL("https", sunnylabsHost, 443, "/report/metrics?t=" + table + "&h=" + host); URL url = new URL("https", sunnylabsHost, 443, "/report/metrics?t=" + table + "&h=" + host);
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
@ -93,7 +93,7 @@ public class JsonMetricsReporter extends ScheduledReporter {
outputStream.close(); outputStream.close();
logger.info("Metrics server response: " + connection.getResponseCode()); logger.debug("Metrics server response: " + connection.getResponseCode());
} catch (IOException e) { } catch (IOException e) {
logger.warn("Error sending metrics", e); logger.warn("Error sending metrics", e);
} catch (Exception e) { } catch (Exception e) {