Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump up patch version 2.0.2
[pti/o2.git]
/
o2common
/
service
/
watcher
/
base.py
diff --git
a/o2common/service/watcher/base.py
b/o2common/service/watcher/base.py
index
a7d025e
..
0e5bc3a
100644
(file)
--- 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.
# 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 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
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:
# 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) \
return []
def _probe(self, parent: object = None, tags: object = None) \