From 21bd4619ae61dfe849fea01211e6c45a86df77c5 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Tue, 8 Jul 2014 01:44:55 -0500 Subject: Clean up make_client() logging Change-Id: I0b6760a6401b50e3dfb891af75424ae89df42ebc --- openstackclient/identity/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openstackclient/identity') diff --git a/openstackclient/identity/client.py b/openstackclient/identity/client.py index 32a2c23b..72e8bfae 100644 --- a/openstackclient/identity/client.py +++ b/openstackclient/identity/client.py @@ -36,8 +36,10 @@ def make_client(instance): API_NAME, instance._api_version[API_NAME], API_VERSIONS) + LOG.debug('Instantiating identity client: %s' % identity_client) + if instance._url: - LOG.debug('instantiating identity client: token flow') + LOG.debug('Using token auth') client = identity_client( endpoint=instance._url, token=instance._token, @@ -46,7 +48,7 @@ def make_client(instance): trust_id=instance._trust_id, ) else: - LOG.debug('instantiating identity client: password flow') + LOG.debug('Using password auth') client = identity_client( username=instance._username, password=instance._password, -- cgit v1.2.1