Skip to content

Commit 9e83071

Browse files
authored
Remove the declaring the type as it is deprecated
This is resolve cmanaha#76 (Specifying types in bulk requests is deprecated) which results in the following warning. ElasticsearchDeprecationWarning: [types removal] Specifying types in bulk requests is deprecated.
1 parent e4a16a8 commit 9e83071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmreslogging/handlers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def flush(self):
292292
actions = (
293293
{
294294
'_index': self._index_name_func.__func__(self.es_index_name),
295-
'_type': self.es_doc_type,
295+
# '_type': self.es_doc_type, #Remove to resolve Issue #76 (ElasticsearchDeprecationWarning: [types removal] Specifying types in bulk requests is deprecated.)
296296
'_source': log_record
297297
}
298298
for log_record in logs_buffer

0 commit comments

Comments
 (0)