1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 15:44:34 +02:00

Add an option to set the op_type for the ElasticsearchHandler (#1766)

Co-authored-by: Identei <>
This commit is contained in:
Identei
2023-02-04 13:40:17 -07:00
committed by GitHub
parent bbc688229e
commit f58e4f47b3
2 changed files with 4 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ class ElasticsearchHandlerTest extends TestCase
protected array $options = [
'index' => 'my_index',
'type' => 'doc_type',
'op_type' => 'index',
];
public function setUp(): void
@@ -93,6 +94,7 @@ class ElasticsearchHandlerTest extends TestCase
'index' => $this->options['index'],
'type' => $this->options['type'],
'ignore_error' => false,
'op_type' => $this->options['op_type'],
];
if ($this->client instanceof Client8 || $this->client::VERSION[0] === '7') {