From 47e73fc3280d071da514daac41ad2a603ad1d01e Mon Sep 17 00:00:00 2001 From: Vladimir Boldakov Date: Fri, 6 Sep 2019 14:34:12 +0200 Subject: [PATCH] bulk error logs --- lib/sink/ElasticSinkTask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sink/ElasticSinkTask.js b/lib/sink/ElasticSinkTask.js index e5b4618..853c47b 100644 --- a/lib/sink/ElasticSinkTask.js +++ b/lib/sink/ElasticSinkTask.js @@ -64,8 +64,8 @@ class ElasticSinkTask extends SinkTask { this.esClient.bulk({ body, }).then(function (data) { - if (data && data.body && data.errors) { - console.error(data.body); + if (data && data.body && data.body.errors) { + console.error(data.body.errors); } self._stats.totalUpserts += upserts.length; callback();