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). In addition, freezer-web-ui should be consistent with freezer in terms of style commandments, for more information,see: https://github.com/openstack/freezer/blob/master/HACKING.rst Change-Id: I99499c2b16bd7f7fec1be8ebc72f7632994576cc
This commit is contained in:
parent
e36e074afb
commit
ad8849332c
|
@ -13,7 +13,7 @@
|
|||
# Some helper functions to use the disaster_recovery client functionality
|
||||
# from horizon.
|
||||
|
||||
import logging
|
||||
from oslo_log import log
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
@ -23,7 +23,7 @@ import freezer.apiclient.client
|
|||
from disaster_recovery import utils
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
@memoized
|
||||
|
|
Loading…
Reference in New Issue