rabbit: Make PreconditionFailed warning log more informative

... instead of just logging the exception message.

Change-Id: I9a1fae54106f845d864f747120b2064cabb836a8
This commit is contained in:
Takashi Kajinami 2024-06-10 18:25:13 +09:00
parent d0952415a5
commit 82d6287065

@ -482,7 +482,9 @@ class Consumer(object):
# from each others. RabbitMQ will reject the services
# that try to create it with a configuration that differ
# from the one used first.
LOG.warning(err)
LOG.warning('[%s] Queue %s could not be declared probably '
'because of conflicting configurations: %s',
conn.connection_id, self.queue_name, err)
self._declare_fallback(err, conn, consumer_arguments)
except conn.connection.channel_errors as exc: