Visitar URL original
When creating a client, pass the default logger · openstack/python-novaclient@5ee4427 · GitHub
Skip to content

Commit 5ee4427

Browse files
deshipuyoctozepto
authored andcommitted
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 d4399d3)
1 parent 23be802 commit 5ee4427

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎novaclient/v2/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def __init__(self,
192192
endpoint_type=endpoint_type,
193193
http_log_debug=http_log_debug,
194194
insecure=insecure,
195-
logger=logger,
195+
logger=self.logger,
196196
os_cache=self.os_cache,
197197
password=password,
198198
project_domain_id=project_domain_id,

0 commit comments

Comments
 (0)