Skip to content

Commit 5d41f4e

Browse files
author
maxime.c
committed
Revert "add logging to concurrent cursor"
This reverts commit 1c3975a.
1 parent 1c3975a commit 5d41f4e

File tree

1 file changed

+0
-7
lines changed
  • airbyte_cdk/sources/streams/concurrent

1 file changed

+0
-7
lines changed

airbyte_cdk/sources/streams/concurrent/cursor.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import functools
66
import logging
7-
import os
87
from abc import ABC, abstractmethod
98
from typing import (
109
Any,
@@ -238,18 +237,12 @@ def _extract_cursor_value(self, record: Record) -> Any:
238237
return self._connector_state_converter.parse_value(self._cursor_field.extract_value(record))
239238

240239
def close_partition(self, partition: Partition) -> None:
241-
test_env = os.getenv("PYTEST_CURRENT_TEST")
242-
if test_env and "test_concurrent_declarative_source.py" in test_env:
243-
LOGGER.info(f"Closing partition {partition.to_slice()}")
244-
LOGGER.info(f"\tstate before is {self._concurrent_state}")
245240
slice_count_before = len(self._concurrent_state.get("slices", []))
246241
self._add_slice_to_state(partition)
247242
if slice_count_before < len(
248243
self._concurrent_state["slices"]
249244
): # only emit if at least one slice has been processed
250245
self._merge_partitions()
251-
if test_env and "test_concurrent_declarative_source.py" in test_env:
252-
LOGGER.info(f"\tstate after merged partition is {self._concurrent_state}")
253246
self._emit_state_message()
254247
self._has_closed_at_least_one_slice = True
255248

0 commit comments

Comments
 (0)