out_es: on debug mode allow to read server response
@@ -468,6 +468,10 @@ void cb_es_flush(void *data, size_t bytes,
c->resp.payload);
goto retry;
}
+ else {
+ flb_debug("[out_es Elasticsearch response\n%s",
+ c->resp.payload);
+ }
}
else {
goto retry;
