#13 Add some log when the plugin sends the message
Merged 4 years ago by cverna. Opened 4 years ago by cverna.
cverna/koji-fedmsg-plugin add_logs  into  master

file modified
+4 -1
@@ -242,10 +242,13 @@ 

  

      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(

Pull-Request has been merged by cverna

4 years ago
Metadata