diff options
| author | Cory Wright <cory.wright@rackspace.com> | 2010-12-22 11:28:25 -0500 |
|---|---|---|
| committer | Cory Wright <cory.wright@rackspace.com> | 2010-12-22 11:28:25 -0500 |
| commit | ba7afd00a4ea826fc12113d98de391aace1fd2d2 (patch) | |
| tree | df35d22040e8bcd0cd79d2b841efd1386b67554d /nova/fakerabbit.py | |
| parent | 4ef1a234aaee98e55a5d8e3d8fac1f8f282c803d (diff) | |
| parent | d9b37f9a3b6cc7dbf6026ceb94b9e4c585e59e01 (diff) | |
| download | nova-ba7afd00a4ea826fc12113d98de391aace1fd2d2.tar.gz nova-ba7afd00a4ea826fc12113d98de391aace1fd2d2.tar.xz nova-ba7afd00a4ea826fc12113d98de391aace1fd2d2.zip | |
merging trunk
Diffstat (limited to 'nova/fakerabbit.py')
| -rw-r--r-- | nova/fakerabbit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nova/fakerabbit.py b/nova/fakerabbit.py index c64617931..41e686cff 100644 --- a/nova/fakerabbit.py +++ b/nova/fakerabbit.py @@ -37,12 +37,12 @@ class Exchange(object): self._routes = {} def publish(self, message, routing_key=None): - logging.debug('(%s) publish (key: %s) %s', + logging.debug(_('(%s) publish (key: %s) %s'), self.name, routing_key, message) routing_key = routing_key.split('.')[0] if routing_key in self._routes: for f in self._routes[routing_key]: - logging.debug('Publishing to route %s', f) + logging.debug(_('Publishing to route %s'), f) f(message, routing_key=routing_key) def bind(self, callback, routing_key): @@ -82,16 +82,16 @@ class Backend(object): def queue_declare(self, queue, **kwargs): if queue not in self._queues: - logging.debug('Declaring queue %s', queue) + logging.debug(_('Declaring queue %s'), queue) self._queues[queue] = Queue(queue) def exchange_declare(self, exchange, type, *args, **kwargs): if exchange not in self._exchanges: - logging.debug('Declaring exchange %s', exchange) + logging.debug(_('Declaring exchange %s'), exchange) self._exchanges[exchange] = Exchange(exchange, type) def queue_bind(self, queue, exchange, routing_key, **kwargs): - logging.debug('Binding %s to %s with key %s', + logging.debug(_('Binding %s to %s with key %s'), queue, exchange, routing_key) self._exchanges[exchange].bind(self._queues[queue].push, routing_key) @@ -117,7 +117,7 @@ class Backend(object): content_type=content_type, content_encoding=content_encoding) message.result = True - logging.debug('Getting from %s: %s', queue, message) + logging.debug(_('Getting from %s: %s'), queue, message) return message def prepare_message(self, message_data, delivery_mode, |
