Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Ignore ElasticSearch Index Document Error
Browse files Browse the repository at this point in the history
  • Loading branch information
rankarpan committed Aug 10, 2018
1 parent 3084e66 commit 70bc5c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Drivers/ElasticSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ public function indexAuditDocument($model)
'body' => $model
];

return $this->client->index($params);
try {
return $this->client->index($params);
} catch (\Exception $e) {}
}

public function searchAuditDocument($model)
Expand Down

0 comments on commit 70bc5c7

Please sign in to comment.