fix a minor issue

This commit is contained in:
Guillaume Polaert 2017-05-04 13:56:29 +02:00
parent 728fe13b83
commit ccc5a4f8df
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class DDApi {
out.write(content);
out.close();
int responseCode = httpCon.getResponseCode();
if (responseCode != 200) {
if (responseCode == 200) {
logger.debug("Sent the payload to the DD agent.");
} else {
logger.warn("Could not send the payload to the DD agent. Status: {} ResponseMessage: {}", httpCon.getResponseCode(), httpCon.getResponseMessage());