Skip to content

Commit ba267bb

Browse files
committed
DEBUG
1 parent c17b088 commit ba267bb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

temporalio/converter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ def with_context(self, context: Optional[SerializationContext]) -> Self:
400400
A new CompositePayloadConverter with context-aware converters, or self if no converters
401401
support context.
402402
"""
403+
print(
404+
f"🌈 CompositePayloadConverter.with_context({context}) {self._any_converters_with_context}"
405+
)
403406
if not self._any_converters_with_context:
404407
return self
405408
new_converters = []

tests/test_serialization_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def encoding(self) -> str:
4545
def with_context(
4646
self, context: Optional[SerializationContext]
4747
) -> SerializationContextTestEncodingPayloadConverter:
48+
print(
49+
f"🌈 SerializationContextTestEncodingPayloadConverter.with_context({context})"
50+
)
4851
return SerializationContextTestEncodingPayloadConverter(context)
4952

5053
def to_payload(self, value: Any) -> Optional[Payload]:

0 commit comments

Comments
 (0)