diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2022-04-07 07:26:58 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2022-04-12 09:37:39 +0000 |
commit | 81584955687e053d0697a63131b026fa0eda47c7 (patch) | |
tree | fac92faedda8016eeef7b5112e0a193a73dad51d /src/onaptests/scenario/basic_vm.py | |
parent | 4d1467f9290af4d64d329bc103893eaadd00e02c (diff) |
Log exception stack trace on test failure
If test fails and exception is raised most of the test scenarios don't print a stack trace so debugging consume more time.
Additionally double check on the SDC service distribution status due to an error on Python ONAP SDK
Issue-ID: SDC-3949
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Ifc51dbe287a45d5fbbee788f205d1dbe936516e4
Diffstat (limited to 'src/onaptests/scenario/basic_vm.py')
-rw-r--r-- | src/onaptests/scenario/basic_vm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/onaptests/scenario/basic_vm.py b/src/onaptests/scenario/basic_vm.py index 3ad6392..897e9d4 100644 --- a/src/onaptests/scenario/basic_vm.py +++ b/src/onaptests/scenario/basic_vm.py @@ -45,10 +45,10 @@ class BasicVm(testcase.TestCase): self.result = 100 except OnapTestException as exc: self.result = 0 - self.__logger.error(exc.error_message) + self.__logger.exception(exc.error_message) except SDKException: self.result = 0 - self.__logger.error("SDK Exception") + self.__logger.exception("SDK Exception") finally: self.stop_time = time.time() |