fix a minor issue
This commit is contained in:
parent
728fe13b83
commit
ccc5a4f8df
|
@ -93,7 +93,7 @@ public class DDApi {
|
||||||
out.write(content);
|
out.write(content);
|
||||||
out.close();
|
out.close();
|
||||||
int responseCode = httpCon.getResponseCode();
|
int responseCode = httpCon.getResponseCode();
|
||||||
if (responseCode != 200) {
|
if (responseCode == 200) {
|
||||||
logger.debug("Sent the payload to the DD agent.");
|
logger.debug("Sent the payload to the DD agent.");
|
||||||
} else {
|
} else {
|
||||||
logger.warn("Could not send the payload to the DD agent. Status: {} ResponseMessage: {}", httpCon.getResponseCode(), httpCon.getResponseMessage());
|
logger.warn("Could not send the payload to the DD agent. Status: {} ResponseMessage: {}", httpCon.getResponseCode(), httpCon.getResponseMessage());
|
||||||
|
|
Loading…
Reference in New Issue