diff options
author | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-02-13 16:32:05 -0800 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-02-13 16:32:05 -0800 |
commit | f5a8da8eb246d58822d853672c8a19fdf15b65a1 (patch) | |
tree | ff5ad6f8e3d51a3e515505a44571dbb11840eabe /python/rvilib.py | |
parent | 0dfe4c6ebb2e0ab11e7301254a8edfda821d54e8 (diff) | |
download | rvi_core-f5a8da8eb246d58822d853672c8a19fdf15b65a1.tar.gz |
Removed debug messages from rvilib.py
Diffstat (limited to 'python/rvilib.py')
-rw-r--r-- | python/rvilib.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/python/rvilib.py b/python/rvilib.py index 700e032..d40ec64 100644 --- a/python/rvilib.py +++ b/python/rvilib.py @@ -27,8 +27,6 @@ class RVI(SimpleJSONRPCServer): self.rvi_port = port self.rvi_address = address - print self.rvi_address - print self.rvi_port SimpleJSONRPCServer.__init__(self,addr=((self.rvi_address, self.rvi_port)), logRequests=False) self.rvi_client = Server(rvi_node_url) self.serve_thread = False @@ -74,7 +72,6 @@ class RVI(SimpleJSONRPCServer): # I.e. when self.url() + service_name gets called by the RVI node, we # will dispatch that call to 'function'. # - print "Will register {} to function {}".format(service_name, function) self.register_function(function, service_name) # Register the service name with the RVI node so that we get called @@ -84,7 +81,6 @@ class RVI(SimpleJSONRPCServer): # Check if we have a thread going if self.serve_thread == False: - print "No thread started, will do so now" self.start_serve_thread() @@ -108,7 +104,6 @@ class RVI(SimpleJSONRPCServer): # service that registered 'service_name' in the network. # def message(self, service_name, parameters, timeout = int(time.time()) + 60 ): - print "message({}, {}, {})".format(service_name, parameters, timeout) self.rvi_client.message(calling_service= "not_used", service_name = service_name, timeout = timeout, @@ -120,7 +115,7 @@ class RVI(SimpleJSONRPCServer): # def _dispatch(self, method, params): if method == 'message': - print "Will dispatch message to: " + params['service_name'] + # print "Will dispatch message to: " + params['service_name'] dict_param = {} # Extract the 'parameters' element from the top level JSON-RPC # 'param'. @@ -131,7 +126,7 @@ class RVI(SimpleJSONRPCServer): msg_params = params['parameters'] for i in range(0, len(msg_params)): for j in range(0, len(msg_params[i].keys())): - print "params", msg_params[i].keys()[j], "=", msg_params[i].values()[j] + # print "params", msg_params[i].keys()[j], "=", msg_params[i].values()[j] dict_param[msg_params[i].keys()[j]] = msg_params[i].values()[j] # print "Parameter disctionary: ", dict_param |