From b83b87d49e9bfa8af3380c56b9910625221400a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Tue, 18 Oct 2022 14:17:19 +0200 Subject: Warn when we force creating a non durable exchange Adding warning logs so that users can detect the fallback with durable exchanges. Change-Id: Iabce0986fae6ed8838f1f94496b5994fc19cc5ef --- oslo_messaging/_drivers/impl_rabbit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py index a1f5ce2..0519ca1 100644 --- a/oslo_messaging/_drivers/impl_rabbit.py +++ b/oslo_messaging/_drivers/impl_rabbit.py @@ -1274,6 +1274,7 @@ class Connection(object): # from the one used first. if "PRECONDITION_FAILED - inequivalent arg 'durable'" \ in str(err): + LOG.warning("Force creating a non durable exchange.") exchange.durable = False exchange(self.channel).declare() self._declared_exchanges.add(exchange.name) -- cgit v1.2.1