From: Elena Ezhova Date: Thu, 17 Oct 2013 09:04:20 +0000 (+0400) Subject: Update openstack/common/notifier X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5bea9a554cd5764b0fe7ec661f1960412b3b6abf;p=openstack-build%2Fcinder-build.git Update openstack/common/notifier Oslo version: 5e765b2546dab9d04e4641d92296bfa3d3b17ebf Change-Id: I679a0f3a953cbe1904c3fd32bf33b5a656c2a938 --- diff --git a/cinder/openstack/common/notifier/rpc_notifier.py b/cinder/openstack/common/notifier/rpc_notifier.py index 6c37cbdc2..83c94ed5c 100644 --- a/cinder/openstack/common/notifier/rpc_notifier.py +++ b/cinder/openstack/common/notifier/rpc_notifier.py @@ -43,4 +43,5 @@ def notify(context, message): rpc.notify(context, topic, message) except Exception: LOG.exception(_("Could not send notification to %(topic)s. " - "Payload=%(message)s"), locals()) + "Payload=%(message)s"), + {"topic": topic, "message": message}) diff --git a/cinder/openstack/common/notifier/rpc_notifier2.py b/cinder/openstack/common/notifier/rpc_notifier2.py index 9082cc5b7..e264374ce 100644 --- a/cinder/openstack/common/notifier/rpc_notifier2.py +++ b/cinder/openstack/common/notifier/rpc_notifier2.py @@ -49,4 +49,5 @@ def notify(context, message): rpc.notify(context, topic, message, envelope=True) except Exception: LOG.exception(_("Could not send notification to %(topic)s. " - "Payload=%(message)s"), locals()) + "Payload=%(message)s"), + {"topic": topic, "message": message})