Merge "Remove initialization of logger if logger is None"
This commit is contained in:
@@ -13,8 +13,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from cinderclient import api_versions
|
from cinderclient import api_versions
|
||||||
from cinderclient import client
|
from cinderclient import client
|
||||||
from cinderclient.v3 import attachments
|
from cinderclient.v3 import attachments
|
||||||
@@ -112,9 +110,6 @@ class Client(object):
|
|||||||
setattr(self, extension.name,
|
setattr(self, extension.name,
|
||||||
extension.manager_class(self))
|
extension.manager_class(self))
|
||||||
|
|
||||||
if not logger:
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
self.client = client._construct_http_client(
|
self.client = client._construct_http_client(
|
||||||
username=username,
|
username=username,
|
||||||
password=password,
|
password=password,
|
||||||
|
Reference in New Issue
Block a user