Change somes logs to debug

This commit is contained in:
Maxime Chassagneux
2017-08-25 13:12:45 +02:00
parent 38e5805941
commit 03b6b322d2

View File

@@ -84,7 +84,7 @@ public class ParserEngine implements Runnable {
// Read data from the Queue and send it to influxdb // Read data from the Queue and send it to influxdb
public void run() { public void run() {
StringBuilder postData = new StringBuilder(); StringBuilder postData = new StringBuilder();
log.info("Actual queue size " + queue.size()); log.debug("Actual queue size " + queue.size());
int nbElement = queue.drainTo(res, 2000); int nbElement = queue.drainTo(res, 2000);
if (nbElement > 0) { if (nbElement > 0) {
for (String s : res) { for (String s : res) {
@@ -123,7 +123,7 @@ public class ParserEngine implements Runnable {
// Write data // Write data
OutputStream os = connection.getOutputStream(); OutputStream os = connection.getOutputStream();
log.info("Message to send : \n" + postData); log.debug("Message to send : \n" + postData);
os.write(postData.getBytes()); os.write(postData.getBytes());
int HttpResult = connection.getResponseCode(); int HttpResult = connection.getResponseCode();
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();