path: root/distbuild-helper
diff options
authorSam Thursfield <>2014-04-09 14:02:04 (GMT)
committerSam Thursfield <>2014-04-10 12:13:29 (GMT)
commitb772a26680895ecf102b524444623fc10c4d183d (patch)
tree7c857d2dfddba58118e2e399d896205e740edc6e /distbuild-helper
parentfb92c950ebd8fd8129fc40203be2b9210c15d3db (diff)
distbuild: Improve logging of connections and objects
New DistbuildSocket class that wraps socket.socket(), providing a descriptive repr() handler showing where the socket is connected, and providing a couple of helper methods for fetching local and remote endpoint names. This commit also adds a descriptive repr() handler to a few other objects (mostly giving socket connection details).
Diffstat (limited to 'distbuild-helper')
1 files changed, 1 insertions, 1 deletions
diff --git a/distbuild-helper b/distbuild-helper
index 7399fb5..08e30f1 100755
--- a/distbuild-helper
+++ b/distbuild-helper
@@ -309,7 +309,7 @@ class DistributedBuildHelper(cliapp.Application):
addr = self.settings['parent-address']
port = self.settings['parent-port']
- conn = socket.socket()
+ conn = distbuild.create_socket()
conn.connect((addr, port))
helper = HelperMachine(conn)
helper.debug_messages = self.settings['debug-messages']