Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 8e6dcae

Browse files
oschulzSamgkreuzer
authored andcommitted
KIT-1010 Performance improvements eht16#65
1 parent 19127c8 commit 8e6dcae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

logstash_async/constants.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class Constants:
2424
# maximum number of events to be sent to Logstash in one batch (i.e. using a single connection)
2525
QUEUED_EVENTS_BATCH_SIZE = 50
2626
# maximum number of events to be updated within one SQLite statement
27-
FORMATTER_RECORD_FIELD_SKIP_LIST = [
27+
FORMATTER_RECORD_FIELD_SKIP_LIST = {
2828
'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename', 'funcName',
2929
'id', 'levelname', 'levelno', 'lineno', 'message', 'module',
3030
'msecs', 'msg', 'name', 'pathname', 'process',
31-
'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName']
31+
'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName'}
3232
# fields to be set on the top-level of a Logstash event/message, do not modify this
3333
# unless you know what you are doing
34-
FORMATTER_LOGSTASH_MESSAGE_FIELD_LIST = [
35-
'logsource', 'program', 'type', 'tags', '@metadata']
34+
FORMATTER_LOGSTASH_MESSAGE_FIELD_LIST = {
35+
'logsource', 'program', 'type', 'tags', '@metadata'}
3636
# enable rate limiting for error messages (e.g. network errors) emitted by the logger
3737
# used in LogProcessingWorker, i.e. when transmitting log messages to the Logstash server.
3838
# Use a string like '5 per minute' or None to disable (default), for details see

0 commit comments

Comments
 (0)