loggin enhancement at host_thread
Change-Id: I76a1d8d3d3fad8965d131d474c8cec75725423f4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/osm_openvim/openflow_thread.py b/osm_openvim/openflow_thread.py
index cd873e7..2f39fab 100644
--- a/osm_openvim/openflow_thread.py
+++ b/osm_openvim/openflow_thread.py
@@ -165,7 +165,10 @@
else:
self.logger.error("unknown task %s", str(task))
except openflow_conn.OpenflowconnException as e:
+ self.logger.error("OpenflowconnException: " + str(e))
self.set_openflow_controller_status(OFC_STATUS_ERROR, str(e))
+ except Exception as e:
+ self.logger.critical("Unexpected exception at run: " + str(e), exc_info=True)
def terminate(self):
pass