Skip to content

Commit 6fa5a23

Browse files
authored
Merge pull request nyaruka#43 from nyaruka/log_status
If indexing fails, log status code from elasticsearch
2 parents 22e00ff + af632fc commit 6fa5a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexers/base.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (i *baseIndexer) indexBatch(index string, batch []byte) (int, int, error) {
255255
} else if item.Index.Status == 409 {
256256
conflictedCount++
257257
} else {
258-
logrus.WithField("id", item.Index.ID).WithField("batch", batch).WithField("result", item.Index.Result).Error("error indexing document")
258+
logrus.WithField("id", item.Index.ID).WithField("status", item.Index.Status).WithField("result", item.Index.Result).Error("error indexing document")
259259
}
260260
} else if item.Delete.ID != "" {
261261
logrus.WithField("id", item.Index.ID).WithField("status", item.Index.Status).Debug("delete response")

0 commit comments

Comments
 (0)