Degrade log message for missing fanout exchange to debug

In upgrade scenario, this is a regular case (no agents created the
exchange, so fanout is ineffective), so logging it using ERROR level is
misleading and against guidelines.

Change-Id: If098071c9c19490af7eb0863dbab83e488019bd7
Related-Bug: #1705351
This commit is contained in:
Ihar Hrachyshka 2017-08-02 11:37:06 -07:00
parent 60b65a233b
commit 0b9748e1f9

View File

@ -107,12 +107,12 @@ class _ContextWrapper(object):
def cast(self, ctxt, method, **kwargs):
try:
self._original_context.cast(ctxt, method, **kwargs)
except Exception:
except Exception as e:
# TODO(kevinbenton): make catch specific to missing exchange once
# bug/1705351 is resolved on the oslo.messaging side; if
# oslo.messaging auto-creates the exchange, then just remove the
# code completely
LOG.exception("Ignored exception during cast")
LOG.debug("Ignored exception during cast: %e", e)
class _BackingOffContextWrapper(_ContextWrapper):