diff options
-rw-r--r-- | src/buildstream/node.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/node.pyx b/src/buildstream/node.pyx index e33a11753..ea61d9366 100644 --- a/src/buildstream/node.pyx +++ b/src/buildstream/node.pyx @@ -90,6 +90,9 @@ cdef class Node: def __json__(self): raise ValueError("Nodes should not be allowed when jsonify-ing data", self) + def __str__(self): + return "{}: {}".format(self.get_provenance(), self.strip_node_info()) + ############################################################# # Abstract Public Methods # ############################################################# |