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:
Monty Taylor 2018-10-15 13:20:54 -05:00
parent c7272cdf49
commit 4059a3e345
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 2 deletions

View File

@ -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):