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:
parent
1c82f7ebbe
commit
72014bc1be
@ -13,8 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
|
||||
from oslo_log import log as logging
|
||||
from six.moves.urllib import parse as urlparse
|
||||
import testtools
|
||||
|
||||
|
@ -10,10 +10,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
import netaddr
|
||||
from oslo_log import log as logging
|
||||
|
||||
from tempest.api.orchestration import base
|
||||
from tempest.common.utils import data_utils
|
||||
|
@ -11,11 +11,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from cliff import app
|
||||
from cliff import commandmanager
|
||||
from oslo_log import log as logging
|
||||
from pbr import version
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user