Esempio n. 1
0
 def notify(self, message):
     priority = message.get('priority',
                            FLAGS.default_notification_level)
     topic = "%s.%s" % (FLAGS.rabbit_notification_topic, priority)
     queue = self.connection.SimpleQueue(topic)
     queue.put(message, serializer="json")
     queue.close()
Esempio n. 2
0
 def notify(self, message):
     priority = message.get('priority', CFG.notifier.level)
     topic = "%s.%s" % (CFG.notifier.rabbit_topic, priority)
     queue = self.connection.SimpleQueue(topic)
     queue.put(message, serializer="json")
     queue.close()