summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-04-14 17:06:07 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-21 09:27:18 +0000
commit40c9378496c4b195fc1260ed355b801fe5e380ed (patch)
treeacfd40290769c9920d81607ae2a989c887a9e408
parentab92ce0343b838b336313f604ea035a60dfcb960 (diff)
downloadmorph-40c9378496c4b195fc1260ed355b801fe5e380ed.tar.gz
distbuild: Fix log message when listening for connections
A log message was printing the 'remote name' of a socket that was listening for connections. There isn't one, so the message always shows this: 2015-04-14 17:05:19 INFO Binding socket to sam-jetson-mason 2015-04-14 17:05:19 INFO Listening at None Print the local name instead: 2015-04-14 17:05:19 INFO Binding socket to sam-jetson-mason 2015-04-14 17:05:19 INFO Listening at 10.24.2.125:7878 Change-Id: I22c1bbe8c9f78ef63e587b6ace516afc861fae0f
-rw-r--r--distbuild/socketsrc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distbuild/socketsrc.py b/distbuild/socketsrc.py
index daba1610..8207c35c 100644
--- a/distbuild/socketsrc.py
+++ b/distbuild/socketsrc.py
@@ -67,7 +67,7 @@ class ListeningSocketEventSource(EventSource):
self.sock.bind((addr, port))
self.sock.listen(5)
self._accepting = True
- logging.info('Listening at %s' % self.sock.remotename())
+ logging.info('Listening at %s' % self.sock.localname())
def get_select_params(self):
r = [self.sock.fileno()] if self._accepting else []