Fix SDK log output setting

Always dumping debug output from SDK is a bad idea. We are trying to
reduce some noises during logging from SDK. Ideally, this should be
aligned to the oslo.log setting, but I haven't figured out a way to do
that.

Change-Id: I5f8c127cad9bbd3df5c3a03662c6d590aec73bcb
This commit is contained in:
tengqm 2016-08-30 22:07:29 -04:00
parent e14a174293
commit a90ba7efb5
1 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import six
from openstack import connection
from openstack import exceptions as sdk_exc
from openstack import profile
from openstack import utils
from openstack import utils as sdk_utils
from oslo_serialization import jsonutils
from requests import exceptions as req_exc
@ -32,7 +32,8 @@ from senlin.common import exception as senlin_exc
USER_AGENT = 'senlin'
exc = sdk_exc
LOG = logging.getLogger(__name__)
utils.enable_logging(debug=True, stream=sys.stdout)
sdk_utils.enable_logging(debug=False, stream=sys.stdout)
def parse_exception(ex):