Skip to content

Commit

Permalink
Add extra diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Nov 11, 2024
1 parent cbad0e0 commit 73dcf8c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/workflows/transport/pika_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,15 @@ def _call_message_callback(
body: bytes,
):
"""Rewrite and redirect a pika callback to the subscription function"""
merged_headers = dict(properties.headers)
if properties.headers is None:
logger.warning(
f"""Got unexpected empty header; this could be an error?
{_channel=}
{method=}
{properties=}
{body=}"""
)
merged_headers = dict(properties.headers or {})
merged_headers.update(
{
"consumer_tag": str(method.consumer_tag),
Expand Down

0 comments on commit 73dcf8c

Please sign in to comment.