ovs.jsonrpc: Include result in Message.__str__() output.
authorBen Pfaff <blp@nicira.com>
Thu, 15 Sep 2011 20:01:39 +0000 (13:01 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 23 Sep 2011 16:10:44 +0000 (09:10 -0700)
This was overlooked in the initial implementation.  Including the result
member makes logging output more useful.

python/ovs/jsonrpc.py

index 7aea31b1b2917d7a35fb60980c9d345b8a6afddc..ecfe5f828fbfaba47e2a231acda309b751e13b5a 100644 (file)
@@ -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: