From 5bea9a554cd5764b0fe7ec661f1960412b3b6abf Mon Sep 17 00:00:00 2001 From: Elena Ezhova Date: Thu, 17 Oct 2013 13:04:20 +0400 Subject: [PATCH] Update openstack/common/notifier Oslo version: 5e765b2546dab9d04e4641d92296bfa3d3b17ebf Change-Id: I679a0f3a953cbe1904c3fd32bf33b5a656c2a938 --- cinder/openstack/common/notifier/rpc_notifier.py | 3 ++- cinder/openstack/common/notifier/rpc_notifier2.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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}) -- 2.45.2