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

Commit 70bc5c7

Browse files
committed
Ignore ElasticSearch Index Document Error
1 parent 3084e66 commit 70bc5c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Drivers/ElasticSearch.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ public function indexAuditDocument($model)
150150
'body' => $model
151151
];
152152

153-
return $this->client->index($params);
153+
try {
154+
return $this->client->index($params);
155+
} catch (\Exception $e) {}
154156
}
155157

156158
public function searchAuditDocument($model)

0 commit comments

Comments
 (0)