Merge "Use openstack.common.logging in NEC OpenFlow plugin"

This commit is contained in:
Jenkins 2012-11-28 22:44:38 +00:00 committed by Gerrit Code Review
commit 4246ccbefc
7 changed files with 8 additions and 12 deletions

View File

@ -21,7 +21,6 @@
# under the License.
# @author: Ryota MIBU
import logging
import socket
import sys
import time
@ -30,11 +29,11 @@ from quantum.agent.linux import ovs_lib
from quantum.common import config as logging_config
from quantum.common import topics
from quantum.openstack.common import context
from quantum.openstack.common import log as logging
from quantum.openstack.common import rpc
from quantum.plugins.nec.common import config
logging.basicConfig()
LOG = logging.getLogger(__name__)

View File

@ -17,9 +17,9 @@
import httplib
import json
import logging
import socket
from quantum.openstack.common import log as logging
from quantum.plugins.nec.common import exceptions as nexc

View File

@ -15,12 +15,11 @@
# under the License.
# @author: Ryota MIBU
import logging
import sqlalchemy as sa
from quantum.db import api as db
from quantum.db import model_base
from quantum.openstack.common import log as logging
from quantum.plugins.nec.common import config
from quantum.plugins.nec.common import exceptions as nexc
from quantum.plugins.nec.db import models as nmodels

View File

@ -15,12 +15,11 @@
# under the License.
# @author: Ryota MIBU
import logging
from sqlalchemy.orm import exc
from quantum.api.v2 import attributes
from quantum.db import db_base_plugin_v2
from quantum.openstack.common import log as logging
from quantum.openstack.common import uuidutils
from quantum.plugins.nec.common import exceptions as q_exc
from quantum.plugins.nec.db import models as nmodels

View File

@ -15,9 +15,8 @@
# under the License.
# @author: Ryota MIBU
import logging
from quantum.openstack.common import importutils
from quantum.openstack.common import log as logging
LOG = logging.getLogger(__name__)

View File

@ -15,12 +15,11 @@
# under the License.
# @author: Ryota MIBU
import logging
from quantum.common import topics
from quantum import context
from quantum.db import dhcp_rpc_base
from quantum.db import l3_db
from quantum.openstack.common import log as logging
from quantum.openstack.common import rpc
from quantum.openstack.common.rpc import dispatcher
from quantum.plugins.nec.common import config

View File

@ -43,7 +43,8 @@ class OFCManager(object):
model = self.resource_map[resource]
ofc_item = ndb.find_ofc_item(model, quantum_id)
if not ofc_item:
reason = "NotFound %s for quantum_id=%s." % (resource, quantum_id)
reason = _("NotFound %(resource)s for "
"quantum_id=%(quantum_id)s.") % locals()
raise nexc.OFCConsistencyBroken(reason=reason)
return ofc_item.id