Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions temporalio/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,13 +1466,14 @@ def process(
self, msg: Any, kwargs: MutableMapping[str, Any]
) -> Tuple[Any, MutableMapping[str, Any]]:
"""Override to add workflow details."""
extra: Dict[str, Any] = {}
msg_extra: Dict[str, Any] = {}

if (
self.workflow_info_on_message
or self.workflow_info_on_extra
or self.full_workflow_info_on_extra
):
extra: Dict[str, Any] = {}
msg_extra: Dict[str, Any] = {}
runtime = _Runtime.maybe_current()
if runtime:
workflow_details = runtime.logger_details
Expand Down