Skip to content

Commit 0c2ab3a

Browse files
committed
add stream name to cursor log statements
1 parent c934da1 commit 0c2ab3a

File tree

1 file changed

+5
-3
lines changed
  • airbyte_cdk/sources/streams/concurrent

1 file changed

+5
-3
lines changed

airbyte_cdk/sources/streams/concurrent/cursor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,17 @@ def close_partition(self, partition: Partition) -> None:
245245
AirbyteMessage(
246246
type=Type.LOG,
247247
log=AirbyteLogMessage(
248-
level=Level.INFO, message=f"Closing partition {partition.to_slice()}"
248+
level=Level.INFO,
249+
message=f"[{self._stream_name}] Closing partition {partition.to_slice()}",
249250
),
250251
)
251252
)
252253
self._message_repository.emit_message(
253254
AirbyteMessage(
254255
type=Type.LOG,
255256
log=AirbyteLogMessage(
256-
level=Level.INFO, message=f"\tstate before is {self._concurrent_state}"
257+
level=Level.INFO,
258+
message=f"\t[{self._stream_name}] state before is {self._concurrent_state}",
257259
),
258260
)
259261
)
@@ -270,7 +272,7 @@ def close_partition(self, partition: Partition) -> None:
270272
type=Type.LOG,
271273
log=AirbyteLogMessage(
272274
level=Level.INFO,
273-
message=f"\tstate after merged partition is {self._concurrent_state}",
275+
message=f"\t[{self._stream_name}] state after merged partition is {self._concurrent_state}",
274276
),
275277
)
276278
)

0 commit comments

Comments
 (0)