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

Commit 40c07a3

Browse files
committed
KIT-1010 use own cache for each worker
1 parent 1b6b6d5 commit 40c07a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

logstash_async/handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def emit(self, record):
5252
self._setup_transport()
5353
self._start_worker_thread()
5454

55-
# basically same implementation as in logging.handlers.SocketHandler.emit()
5655
try:
5756
data = self._format_record(record)
5857
self._worker_thread.enqueue_event(data)
@@ -84,7 +83,7 @@ def _start_worker_thread(self):
8483
port=self._port,
8584
transport=self._transport,
8685
ssl_enable=self._ssl_enable,
87-
cache=logstash_async.EVENT_CACHE,
86+
cache={},
8887
event_ttl=self._event_ttl)
8988
self._worker_thread.start()
9089

0 commit comments

Comments
 (0)