diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-07-10 14:15:39 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-07-10 14:15:39 +0000 |
| commit | 22ccc58df8886531b649a8d95251bfd02d40c62a (patch) | |
| tree | c9d1f634d31c3901a7b795fa2d76aee8c09dec63 /openstack/common/notifier | |
| parent | ecebfb2b2391439a502f4db7801b7992f44e1851 (diff) | |
| parent | 85f6662f25e9d2696ec6086a1423c1b93a58cb0c (diff) | |
| download | oslo-22ccc58df8886531b649a8d95251bfd02d40c62a.tar.gz oslo-22ccc58df8886531b649a8d95251bfd02d40c62a.tar.xz oslo-22ccc58df8886531b649a8d95251bfd02d40c62a.zip | |
Merge "Switch common files to using jsonutils."
Diffstat (limited to 'openstack/common/notifier')
| -rw-r--r-- | openstack/common/notifier/log_notifier.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack/common/notifier/log_notifier.py b/openstack/common/notifier/log_notifier.py index 594fd3e..3b025f0 100644 --- a/openstack/common/notifier/log_notifier.py +++ b/openstack/common/notifier/log_notifier.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. -import json from openstack.common import cfg +from openstack.common import jsonutils from openstack.common import log as logging @@ -31,4 +31,4 @@ def notify(_context, message): priority = priority.lower() logger = logging.getLogger( 'openstack.common.notification.%s' % message['event_type']) - getattr(logger, priority)(json.dumps(message)) + getattr(logger, priority)(jsonutils.dumps(message)) |
