Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
routing key should be the queue name rather than exchange name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbryner committed Jan 16, 2015
1 parent 91055b3 commit e110cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerts/lib/alerttask.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def alertToMessageQueue(self, alertDict):
max_retries=10)
ensurePublish(alertDict,
exchange=self.alertExchange,
routing_key=RABBITMQ['alertexchange'])
routing_key=RABBITMQ['alertqueue'])
self.log.debug('alert sent to the alert queue')
except Exception as e:
self.log.error('Exception while sending alert to message queue: {0}'.format(e))
Expand Down

0 comments on commit e110cc1

Please sign in to comment.