Improve error log into vnf test step 79/30079/1
authorboucherv <valentin.boucher@orange.com>
Wed, 8 Mar 2017 18:40:09 +0000 (19:40 +0100)
committerboucherv <valentin.boucher@orange.com>
Wed, 8 Mar 2017 18:40:09 +0000 (19:40 +0100)
Change-Id: Ied92224bc80ab4e02611e7b1f4bf33f276914e89
Signed-off-by: boucherv <valentin.boucher@orange.com>
functest/core/vnf_base.py

index 9438dca..daf8b80 100644 (file)
@@ -79,7 +79,8 @@ class VnfOnBoardingBase(base.TestcaseBase):
             self.details['vnf']['result'] = res_deploy_vnf['result']
             self.details['vnf']['duration'] = round(
                 vnf_ready_time - orchestrator_ready_time, 1)
-        except:
+        except Exception:
+            self.logger.error("Error during VNF deployment", exc_info=True)
             raise Exception("Error during VNF deployment")
 
         # Test VNF
@@ -91,7 +92,8 @@ class VnfOnBoardingBase(base.TestcaseBase):
             self.details['test_vnf']['result'] = res_test_vnf['result']
             self.details['test_vnf']['duration'] = round(
                 test_vnf_done_time - vnf_ready_time, 1)
-        except:
+        except Exception:
+            self.logger.error("Error when running VNF tests", exc_info=True)
             raise Exception("Error when running VNF tests")
 
         # Clean the system