Skip to content

Commit

Permalink
fix: Use sasl_params instead of ssl context for batch exports logger (#…
Browse files Browse the repository at this point in the history
…18630)

fix: Use sasl_params instead of ssl context
  • Loading branch information
tomasfarias authored Nov 15, 2023
1 parent 6debc1f commit 3735e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/temporal/workflows/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from structlog.processors import EventRenamer
from structlog.typing import FilteringBoundLogger

from posthog.kafka_client.helper import get_kafka_ssl_context
from posthog.kafka_client.client import _sasl_params
from posthog.kafka_client.topics import KAFKA_LOG_ENTRIES

BACKGROUND_LOGGER_TASKS = set()
Expand Down Expand Up @@ -255,7 +255,7 @@ def __init__(
security_protocol=settings.KAFKA_SECURITY_PROTOCOL or "PLAINTEXT",
acks="all",
api_version="2.5.0",
ssl_context=get_kafka_ssl_context(),
**_sasl_params(),
)
)
self.logger = structlog.get_logger()
Expand Down

0 comments on commit 3735e44

Please sign in to comment.