Replace directly import of logging with import oslo_log

The oslo.log (logging) configuration library provides standardized
configuration for all openstack projects. It also provides custom
formatters, handlers and support for context specific
logging (like resource id's etc).

It is better to use the common logging module.

Change-Id: I45933a0256e71f3d51e7b5f4ef5de782e2fa27cf
This commit is contained in:
Cady_Chen 2016-11-16 09:43:49 +08:00 committed by chenyingnan
parent 1c82f7ebbe
commit 72014bc1be
3 changed files with 3 additions and 6 deletions

View File

@ -13,8 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging from oslo_log import log as logging
from six.moves.urllib import parse as urlparse from six.moves.urllib import parse as urlparse
import testtools import testtools

View File

@ -10,10 +10,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
import netaddr import netaddr
from oslo_log import log as logging
from tempest.api.orchestration import base from tempest.api.orchestration import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils

View File

@ -11,11 +11,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
import sys import sys
from cliff import app from cliff import app
from cliff import commandmanager from cliff import commandmanager
from oslo_log import log as logging
from pbr import version from pbr import version