From: Ben Pfaff Date: Thu, 15 Sep 2011 20:01:39 +0000 (-0700) Subject: ovs.jsonrpc: Include result in Message.__str__() output. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2edc4e7d84dd315330a9466adb755af4148dd40;p=openvswitch ovs.jsonrpc: Include result in Message.__str__() output. This was overlooked in the initial implementation. Including the result member makes logging output more useful. --- diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py index 7aea31b1..ecfe5f82 100644 --- a/python/ovs/jsonrpc.py +++ b/python/ovs/jsonrpc.py @@ -165,6 +165,8 @@ class Message(object): s.append("method=\"%s\"" % self.method) if self.params is not None: s.append("params=" + ovs.json.to_string(self.params)) + if self.result is not None: + s.append("result=" + ovs.json.to_string(self.result)) if self.error is not None: s.append("error=" + ovs.json.to_string(self.error)) if self.id is not None: