Merge pull request #233 from mpeuster/demo-mano-integration
[osm/vim-emu.git] / src / emuvim / api / rest / network.py
index f68507c..9aab1e6 100755 (executable)
@@ -38,7 +38,7 @@ from flask import request
 import json
 import networkx
 
-logging.basicConfig(level=logging.DEBUG)
+logging.basicConfig()
 
 CORS_HEADER = {'Access-Control-Allow-Origin': '*'}
 
@@ -81,17 +81,15 @@ class NetworkAction(Resource):
         # no check if vnfs are really connected to this datacenter...
         try:
             # check json payload
-            logging.info("json: {}".format(request.json))
-            logging.info("args: {}".format(request.args))
+            logging.debug("json: {}".format(request.json))
+            logging.debug("args: {}".format(request.args))
 
-            # when called directly with curl via REST
             data = request.json
             if data is None:
                 data = request.args
             if data is None:
                 data = {}
 
-            logging.info("data: {}".format(data))
             vnf_src_name = data.get("vnf_src_name")
             vnf_dst_name = data.get("vnf_dst_name")
             vnf_src_interface = data.get("vnf_src_interface")
@@ -151,4 +149,4 @@ class DrawD3jsgraph(Resource):
                 links.append(edge_dict)
 
         json = {"nodes":nodes, "links":links}
-        return json, 200, CORS_HEADER
\ No newline at end of file
+        return json, 200, CORS_HEADER