summaryrefslogtreecommitdiff
path: root/distbuild/jm.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-04-14 08:03:03 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-04-14 08:03:03 +0000
commit63f7346990802f01ef76cba75495f6f7d1409028 (patch)
treebec22fdacf5c147c7b5ffc4862097323133a4d81 /distbuild/jm.py
parent5561d1912638de6d9b3989c2b4e8fd0b54f9bcab (diff)
parent3efa5ad43c988421c1402e9fa986b6ea25f38e1a (diff)
downloadmorph-63f7346990802f01ef76cba75495f6f7d1409028.tar.gz
Merge branch 'sam/distbuild-logging-improvements'
Reviewed-By: Richard Ipsum <richard.ipsum@codethink.co.uk> Reviewed-By: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
Diffstat (limited to 'distbuild/jm.py')
-rw-r--r--distbuild/jm.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/distbuild/jm.py b/distbuild/jm.py
index ae222c00..bb86adc4 100644
--- a/distbuild/jm.py
+++ b/distbuild/jm.py
@@ -43,7 +43,11 @@ class JsonMachine(StateMachine):
StateMachine.__init__(self, 'rw')
self.conn = conn
self.debug_json = False
-
+
+ def __repr__(self):
+ return '<JsonMachine at 0x%x: socket %s, max_buffer %s>' % (id(self),
+ self.conn, self.max_buffer)
+
def setup(self):
sockbuf = self.sockbuf = SocketBuffer(self.conn, self.max_buffer)
self.mainloop.add_state_machine(sockbuf)