Skip to content

Commit

Permalink
bulk error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsboldakov committed Sep 6, 2019
1 parent 33fa121 commit 47e73fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sink/ElasticSinkTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 47e73fc

Please sign in to comment.