Commit fe410861 authored by Jérome Perrin's avatar Jérome Perrin

ActiveResult: define a __str__ to ease debugging

parent 13a8ed1c
......@@ -78,5 +78,11 @@ class ActiveResult:
"""
return self.severity > INFO
def __str__(self):
"""
String representation of this active result
"""
return "<%s at %s\n%s - %s\n%s>" % (
self.__class__, id(self), self.severity, self.summary, self.detail)
allow_class(ActiveResult)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment