X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2common%2Fservice%2Fwatcher%2Fbase.py;fp=o2common%2Fservice%2Fwatcher%2Fbase.py;h=0e5bc3ab744ee7f4161fd0fe05d714aa6c6fcfa5;hb=8bfb3515ed5d58f117ea2d4527918269c65f23a0;hp=0fc78538d7214ecdfbb6fcb251e784abbc8f00cf;hpb=567e8559227223b8605dad5ec3a775213adbc76f;p=pti%2Fo2.git diff --git a/o2common/service/watcher/base.py b/o2common/service/watcher/base.py index 0fc7853..0e5bc3a 100644 --- a/o2common/service/watcher/base.py +++ b/o2common/service/watcher/base.py @@ -12,8 +12,10 @@ # 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 @@ -45,6 +47,7 @@ class BaseWatcher(object): except Exception as 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) \