overtride __ftr__ for MessageBase
@@ -6,7 +6,6 @@ from collections import OrderedDict
from plenum.common.constants import OP_FIELD_NAME
from plenum.common.messages.fields import FieldValidator
-
class MessageValidator(FieldValidator):
# the schema has to be an ordered iterable because the message class
@@ -125,3 +124,6 @@ class MessageBase(Mapping, MessageValidator):
def values(self):
return self._fields.values()
+
+ def __str__(self):
+ return "{}{}".format(self.typename, dict(self.items()))
\ No newline at end of file
