Skip to content

Commit

Permalink
fix: Typing issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Nov 7, 2023
1 parent e457d58 commit 4f00c45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions posthog/temporal/workflows/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import temporalio.activity
import temporalio.workflow
from django.conf import settings
from structlog.processors import EventRenamer
from structlog.typing import FilteringBoundLogger

from posthog.kafka_client.topics import KAFKA_LOG_ENTRIES


async def bind_batch_exports_logger(
team_id: int, destination: str | None = None
) -> structlog.types.FilteringBoundLogger:
async def bind_batch_exports_logger(team_id: int, destination: str | None = None) -> FilteringBoundLogger:
"""Return a bound logger for BatchExports."""
if not structlog.is_configured():
await configure_logger()
Expand Down Expand Up @@ -55,7 +55,7 @@ async def configure_logger(
structlog.stdlib.PositionalArgumentsFormatter(),
add_batch_export_context,
put_in_queue,
structlog.processors.EventRenamer("msg"),
EventRenamer("msg"),
structlog.processors.JSONRenderer(),
]
extra_processors_to_add = extra_processors if extra_processors is not None else []
Expand Down

0 comments on commit 4f00c45

Please sign in to comment.