summaryrefslogtreecommitdiffstats
path: root/lcm/ns/sfcs/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/ns/sfcs/views.py')
-rw-r--r--lcm/ns/sfcs/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/ns/sfcs/views.py b/lcm/ns/sfcs/views.py
index 1e3f98ff..644dc95a 100644
--- a/lcm/ns/sfcs/views.py
+++ b/lcm/ns/sfcs/views.py
@@ -85,6 +85,7 @@ class SfcView(APIView):
logger.info("service_function_chain_fpindex : %s" % ignorcase_get(request.data, 'fpindex'))
ns_model_data = request.data['context']
except Exception as e:
+ logger.error("Exception occurs: %s", e.message)
logger.error(traceback.format_exc())
data = {
'nsinstid': ignorcase_get(request.data, 'nsinstanceid'),
@@ -99,7 +100,7 @@ class SfcView(APIView):
worker = CreateSfcWorker(data)
job_id = worker.init_data()
worker.start()
- logger.info("Service Function Chain Thread Sleep start : %s" %time.ctime())
+ logger.info("Service Function Chain Thread Sleep start : %s" % time.ctime())
time.sleep(2)
logger.info("Service Function Chain Thread Sleep end: %s" % time.ctime())
logger.info("Create Service Function Chain end")