Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Aug 6, 2024
1 parent 93c36a4 commit 785a717
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion st2common/st2common/transport/publishers.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ def do_publish(connection, channel):
"content_encoding": "utf-8",
}

def inner(**inner_kwargs):
LOG.debug("%s.publish.do_publish.inner: %s", self.__class__.__name__, inner_kwargs)
return producer.publish(**inner_kwargs)

retry_wrapper.ensured(
connection=connection,
obj=producer,
to_ensure_func=producer.publish,
to_ensure_func=inner,
**kwargs,
)

Expand Down

0 comments on commit 785a717

Please sign in to comment.