Skip to content

Commit

Permalink
Ignore err as key may not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
bestpath-gb committed May 5, 2020
1 parent d084e89 commit 8ddf373
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libbeat/outputs/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,7 @@ func createEventBulkMeta(
}

id, _ := event.GetMetaStringValue("_id")
opType, err := event.GetMetaStringValue(opTypeKey)
if err != nil {
log.Errorf("%s %v is no string value", opTypeKey, opType)
return nil, err
}
opType, _ := event.GetMetaStringValue(opTypeKey)

meta := eslegclient.BulkMeta{
Index: index,
Expand Down

0 comments on commit 8ddf373

Please sign in to comment.