MON vROPs plugin updates -
[osm/MON.git] / plugins / OpenStack / common.py
index 25cca45..fe72acc 100644 (file)
@@ -21,7 +21,8 @@
 ##
 """Common methods for the OpenStack plugins."""
 
-import logging as log
+import logging
+log = logging.getLogger(__name__)
 
 from keystoneclient.v3 import client
 
@@ -41,7 +42,7 @@ class Common(object):
         self._endpoint = None
         self._ks = None
 
-    def _authenticate(self, tenant_id=None):
+    def _authenticate(self):
         """Authenticate and/or renew the authentication token."""
         if self._auth_token is not None:
             return self._auth_token
@@ -102,5 +103,8 @@ class Common(object):
 
         except Exception as e:
             log.warn("Exception thrown on request", e)
+            if response is not None:
+                log.warn("Request resulted in %s code and %s response",
+                         response.status_code, response.text)
 
         return response