From: Bob Kukura Date: Wed, 29 May 2013 22:18:41 +0000 (-0400) Subject: Fix ml2 stack trace when logging. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b345dbb8676ad2ff57bfa9daa6f7dec3753b75cd;p=openstack-build%2Fneutron-build.git Fix ml2 stack trace when logging. Change-Id: I8bbf6edd3e526483e7f04e3eeeea571a660235fa --- diff --git a/quantum/plugins/ml2/db.py b/quantum/plugins/ml2/db.py index 05f55c30a..1c12bab7a 100644 --- a/quantum/plugins/ml2/db.py +++ b/quantum/plugins/ml2/db.py @@ -42,7 +42,10 @@ def add_network_segment(session, network_id, segment): ) session.add(record) LOG.info(_("Added segment %(id)s of type %(network_type)s for network" - " %(network_id)s"), record) + " %(network_id)s"), + {'id': record.id, + 'network_type': record.network_type, + 'network_id': record.network_id}) def get_network_segments(session, network_id):