Skip to content

Commit

Permalink
Merge pull request #43 from nyaruka/log_status
Browse files Browse the repository at this point in the history
If indexing fails, log status code from elasticsearch
  • Loading branch information
rowanseymour authored Mar 30, 2022
2 parents 22e00ff + af632fc commit 6fa5a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexers/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (i *baseIndexer) indexBatch(index string, batch []byte) (int, int, error) {
} else if item.Index.Status == 409 {
conflictedCount++
} else {
logrus.WithField("id", item.Index.ID).WithField("batch", batch).WithField("result", item.Index.Result).Error("error indexing document")
logrus.WithField("id", item.Index.ID).WithField("status", item.Index.Status).WithField("result", item.Index.Result).Error("error indexing document")
}
} else if item.Delete.ID != "" {
logrus.WithField("id", item.Index.ID).WithField("status", item.Index.Status).Debug("delete response")
Expand Down

0 comments on commit 6fa5a23

Please sign in to comment.