Skip to content

Commit 5a669f4

Browse files
committed
FIX: Move question UUID to correct place in log handler
1 parent 7ed32af commit 5a669f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

octue/cloud/pub_sub/logging.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ def emit(self, record):
5454
originator=self.originator,
5555
recipient=self.recipient,
5656
order=self.order,
57+
question_uuid=self.question_uuid,
5758
parent_question_uuid=self.parent_question_uuid,
58-
attributes={
59-
"question_uuid": self.question_uuid,
60-
"sender_type": "CHILD", # The sender type is repeated here as a string to avoid a circular import.
61-
},
59+
# The sender type is repeated here as a string to avoid a circular import.
60+
attributes={"sender_type": "CHILD"},
6261
)
6362

6463
except Exception: # noqa

0 commit comments

Comments
 (0)