Files
python-cinderclient/cinderclient
Neha Alhat ebb3b675ad Remove initialization of logger if logger is None
If default_log_level=keystoneauth=WARN is enabled in nova.conf,
then these log messages [1][2][3] are logged using cinderclient.v3.client
logger name instead of keystoneauth.session. This is because cinderclient
initializes logger if not passed by nova and since debug=True is set in
nova.conf it’s uses root logger log level.

This patch removes initialization of logger code to ensure log
messages[1][2][3] are logged only when keystoneauth=DEBUG is enabled
in nova.conf. This will also enable us to consume split_logger config
option [4] when enabled in nova without making any additional changes
in client code.

[1] REQ: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@391
[2] RESP: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@422
[3] RESP BODY: https://review.openstack.org/#/c/505764/8/keystoneauth1/session.py@454
[4] https://review.openstack.org/#/c/568878/

Change-Id: I937c6ac2f6e254c438ee2f36eb6c291f62c0f411
2018-06-26 14:46:30 +05:30
..
2017-03-24 13:24:50 +02:00
2017-08-01 16:23:49 -04:00
2017-03-15 13:42:49 +01:00
2017-07-20 15:20:11 +08:00
2017-07-24 09:06:28 -04:00
2017-08-22 14:34:25 +00:00
2018-04-10 15:37:22 -04:00