diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2021-03-25 15:08:20 +0100 |
---|---|---|
committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2021-08-14 18:23:49 +0000 |
commit | 5ee44275f64fe43aa4917301a9af63d81c0db9ee (patch) | |
tree | 05386eeffb87ddbedd424b350ebf6815b35a2410 /novaclient | |
parent | 23be8022f0029fb7cee71719d0a2e87671ed69a7 (diff) | |
download | python-novaclient-wallaby-em.tar.gz |
When creating a client, pass the default loggerwallaby-em17.4.1stable/wallaby
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 d4399d3d36c456c1001b96178ce9b3e7ec082460)
Diffstat (limited to 'novaclient')
-rw-r--r-- | novaclient/v2/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/v2/client.py b/novaclient/v2/client.py index dc170116..e7b677b7 100644 --- a/novaclient/v2/client.py +++ b/novaclient/v2/client.py @@ -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, |