Skip to content

Commit

Permalink
only log check names instead of their config (#229)
Browse files Browse the repository at this point in the history
Co-Authored-By: Olivier Vielpeau <olivielpeau@users.noreply.github.com>
  • Loading branch information
arbll and olivielpeau committed May 27, 2019
1 parent ace2b06 commit 353789a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/datadog/jmxfetch/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,6 @@ private boolean getJsonConfigs() {
return update;
}

LOGGER.info("Received the following JSON configs: " + response.getResponseBody());

InputStream jsonInputStream = IOUtils.toInputStream(response.getResponseBody(), UTF_8);
JsonParser parser = new JsonParser(jsonInputStream);
int timestamp = ((Integer) parser.getJsonTimestamp()).intValue();
Expand All @@ -714,6 +712,9 @@ private boolean getJsonConfigs() {
lastJsonConfigTs = timestamp;
update = true;
LOGGER.info("update is in order - updating timestamp: " + lastJsonConfigTs);
for (String checkName : adJsonConfigs.keySet()) {
LOGGER.debug("received config for check '" + checkName + "'");
}
}
} catch (JsonProcessingException e) {
LOGGER.error("error processing JSON response: " + e);
Expand Down

0 comments on commit 353789a

Please sign in to comment.