]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Update openstack/common/notifier
authorElena Ezhova <eezhova@mirantis.com>
Thu, 17 Oct 2013 09:04:20 +0000 (13:04 +0400)
committerElena Ezhova <eezhova@mirantis.com>
Thu, 17 Oct 2013 09:04:20 +0000 (13:04 +0400)
Oslo version: 5e765b2546dab9d04e4641d92296bfa3d3b17ebf

Change-Id: I679a0f3a953cbe1904c3fd32bf33b5a656c2a938

cinder/openstack/common/notifier/rpc_notifier.py
cinder/openstack/common/notifier/rpc_notifier2.py

index 6c37cbdc29b7f0d33c7f1fceb61e8cfe1c2eb6ef..83c94ed5cc520cd1279903ee3e81b28b50a0c41e 100644 (file)
@@ -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})
index 9082cc5b78bd22af20a54950922664b7d0ec9496..e264374ce0d66c502fece7e3b43f10ff27902563 100644 (file)
@@ -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})