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: I0d11d902b33f87a688a85f0eec63c651c432f052
This commit is contained in:
parent
a9af6dd853
commit
fe8335bc8a
|
@ -17,12 +17,12 @@
|
|||
Routines for configuring Glare
|
||||
"""
|
||||
|
||||
import logging
|
||||
import logging.config
|
||||
import logging.handlers
|
||||
import os
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_policy import policy
|
||||
from paste import deploy
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ the server.
|
|||
import atexit
|
||||
import datetime
|
||||
import errno
|
||||
import logging
|
||||
import os
|
||||
import platform
|
||||
import shutil
|
||||
|
@ -35,6 +34,7 @@ import tempfile
|
|||
import time
|
||||
|
||||
import fixtures
|
||||
from oslo_log import log as logging
|
||||
from oslo_serialization import jsonutils
|
||||
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
|
||||
from six.moves import range
|
||||
|
|
Loading…
Reference in New Issue