From c4762ef3eeeec0f81aff88c3f8ff9a1a684a4c4c Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mar 11 2020 09:55:10 +0000 Subject: Add some log when the plugin sends the message Signed-off-by: Clement Verna --- diff --git a/fedmsg-koji-plugin.py b/fedmsg-koji-plugin.py index fa4360a..c645349 100644 --- a/fedmsg-koji-plugin.py +++ b/fedmsg-koji-plugin.py @@ -242,10 +242,13 @@ def send_messages(cbtype, *args, **kws): for message in messages: try: + topic = "buildsys.{}".format(message['topic']) msg = fedora_messaging.api.Message( - topic="buildsys.{}".format(message['topic']), + topic=topic, body=message['msg'] ) + log.info("Publishing message on topic {}".format(topic)) + log.debug("Message body {}".format(message['msg'])) fedora_messaging.api.publish(msg) except fedora_messaging.exceptions.PublishReturned as e: log.warning(