When creating a client, pass the default logger

When a client is created without a logger, novaclient creates a
default logger, but it's then not used, because it's not passed
to the factory function. Because of that, all novaclient calls
are getting logged as 'keystoneauth.session' instead of
'novaclient.v2.client' as they should.

Closes-bug: 1921388
Change-Id: I53caceb08667eb12e27016731868e8015dd10e34
(cherry picked from commit d4399d3d36)
This commit is contained in:
Radomir Dopieralski 2021-03-25 15:08:20 +01:00 committed by Radosław Piliszek
parent 23be8022f0
commit 5ee44275f6
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Client(object):
endpoint_type=endpoint_type,
http_log_debug=http_log_debug,
insecure=insecure,
logger=logger,
logger=self.logger,
os_cache=self.os_cache,
password=password,
project_domain_id=project_domain_id,