Stop using deprecated version of enable_logging
The openstack.utils.enable_logging method has been deprecated since 0.10 and is slated for removal. Update senlin to consume it from the new location. Change-Id: I01b73a0ddbb7a5cc76af1a483c6d4c25ec2f5629
This commit is contained in:
parent
c7272cdf49
commit
4059a3e345
|
@ -16,9 +16,9 @@ SDK Client
|
|||
import sys
|
||||
|
||||
import functools
|
||||
import openstack
|
||||
from openstack import connection
|
||||
from openstack import exceptions as sdk_exc
|
||||
from openstack import utils as sdk_utils
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_serialization import jsonutils
|
||||
|
@ -32,7 +32,7 @@ USER_AGENT = 'senlin'
|
|||
exc = sdk_exc
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
sdk_utils.enable_logging(debug=False, stream=sys.stdout)
|
||||
openstack.enable_logging(debug=False, stream=sys.stdout)
|
||||
|
||||
|
||||
def parse_exception(ex):
|
||||
|
|
Loading…
Reference in New Issue