Merge "Warn when we force creating a non durable exchange"
This commit is contained in:
commit
bd73f14fd2
@ -1409,6 +1409,7 @@ class Connection(object):
|
|||||||
# from the one used first.
|
# from the one used first.
|
||||||
if "PRECONDITION_FAILED - inequivalent arg 'durable'" \
|
if "PRECONDITION_FAILED - inequivalent arg 'durable'" \
|
||||||
in str(err):
|
in str(err):
|
||||||
|
LOG.warning("Force creating a non durable exchange.")
|
||||||
exchange.durable = False
|
exchange.durable = False
|
||||||
exchange(self.channel).declare()
|
exchange(self.channel).declare()
|
||||||
self._declared_exchanges.add(exchange.name)
|
self._declared_exchanges.add(exchange.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user