Docs: update release notes installation guide of G release
[pti/o2.git] / o2common / service / watcher / base.py
index a7d025e..0e5bc3a 100644 (file)
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 
+import traceback
 # from logging import exception
 # from cgtsclient import exc
+
 from o2common.service.client.base_client import BaseClient
 from o2common.domain import commands
 from o2common.service.messagebus import MessageBus
@@ -43,7 +45,9 @@ class BaseWatcher(object):
             # return self._probe(parent)
             return cmds
         except Exception as ex:
-            logger.warning("Failed to probe resource due to: " + str(ex))
+            logger.warning("Failed to probe %s watcher due to: %s - %s" %
+                           (self._targetname(), type(ex), str(ex)))
+            logger.debug(traceback.format_exc())
             return []
 
     def _probe(self, parent: object = None, tags: object = None) \